Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Update zola deploy action #19

Update zola deploy action

Update zola deploy action #19

Workflow file for this run

name: Zola on GitHub Pages
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
uses: shalzz/[email protected]
env:
BUILD_ONLY: true
BUILD_FLAGS: --drafts
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: Deploy
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}