Skip to content

fix: update on push branch from master to main (#4) #2

fix: update on push branch from master to main (#4)

fix: update on push branch from master to main (#4) #2

Workflow file for this run

name: Deploy 11ty build to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24.8.0'
- name: Install dependencies
run: npm install
- name: Build Eleventy
run: npx @11ty/eleventy
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages