Skip to content

chore(deps): update actions/checkout action to v5 #9

chore(deps): update actions/checkout action to v5

chore(deps): update actions/checkout action to v5 #9

Workflow file for this run

name: Build site
on:
push:
branches: [ "main" ]
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
env:
CARGO_TERM_COLOR: always
jobs:
build_and_deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Check out repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Build and deploy
uses: shalzz/zola-deploy-action@90cd842959b82e0c012601be18ae249d6cdb1669 # v0.21.0
env:
PAGES_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
preview:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Install and build
if: github.event.action != 'closed'
uses: shalzz/zola-deploy-action@90cd842959b82e0c012601be18ae249d6cdb1669 # v0.21.0
env:
BUILD_ONLY: true
BUILD_FLAGS: --drafts
BUILD_THEMES: false
CHECK_LINKS: true