Set up Github Action for gh-pages deployment #1
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: Zola on GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: Publish site | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@master | |
- name: Build and deploy | |
uses: shalzz/zola-deploy-action@master | |
env: | |
# Target branch | |
PAGES_BRANCH: gh-pages | |
# Authentication - use default autogenerated token | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Verify links with `zola check` | |
CHECK_LINKS: true |