Skip to content

Update zola.yml

Update zola.yml #3

Workflow file for this run

on: push
jobs:
build:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build'
uses: shalzz/zola-deploy-action@master
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: .
# BUILD_ONLY: true
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: 'checkout'
uses: actions/checkout@v4
- name: 'build and deploy'
uses: shalzz/zola-deploy-action@master
env:
PAGES_BRANCH: master
BUILD_DIR: .