Skip to content

Update actions/checkout action to v4 - autoclosed #27

Update actions/checkout action to v4 - autoclosed

Update actions/checkout action to v4 - autoclosed #27

Workflow file for this run

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