Update #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: github pages | |
on: | |
push: | |
branches: | |
- main # Set a branch to deploy | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 # Update this to the latest version supporting Node.js 20 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 # Update to the latest version supporting Node.js 20 | |
with: | |
hugo-version: 'latest' | |
- name: Build | |
run: hugo --minify | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 # Update to the latest version supporting Node.js 20 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.LOGSEQ_GITHUB_TOKEN }} | |
publish_dir: ./public |