Skip to content

chore(deps): update peaceiris/actions-gh-pages action to v4 in .githu… #14

chore(deps): update peaceiris/actions-gh-pages action to v4 in .githu…

chore(deps): update peaceiris/actions-gh-pages action to v4 in .githu… #14

Workflow file for this run

name: Deploy
on:
push:
branches:
- main # Set a branch to deploy
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2
with:
hugo-version: 'latest'
extended: true
- name: Install deps
run: npm install
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public