Skip to content

Update branch name and bump node in actions #2

Update branch name and bump node in actions

Update branch name and bump node in actions #2

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/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public