Skip to content

Set up Github Action for gh-pages deployment #1

Set up Github Action for gh-pages deployment

Set up Github Action for gh-pages deployment #1

Workflow file for this run

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