Skip to content

Fix gh pages workflow branch name #4

Fix gh pages workflow branch name

Fix gh pages workflow branch name #4

Workflow file for this run

name: Build and deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Node dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public