Skip to content

Setting up for success #12

Setting up for success

Setting up for success #12

Workflow file for this run

name: Zola on GitHub Pages
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build only
uses: shalzz/zola-deploy-action@master
env:
BUILD_DIR: .
BUILD_ONLY: true
BUILD_FLAGS: --drafts
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and deploy
uses: shalzz/zola-deploy-action@master
env:
BUILD_DIR: .
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}