Skip to content

chore(deps): update github actions #75

chore(deps): update github actions

chore(deps): update github actions #75

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Build and deploy
uses: shalzz/zola-deploy-action@7b80b99bba8d761a6cad869bf20c64ee0ca1cc0e # v0.22.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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install and build
if: github.event.action != 'closed'
uses: shalzz/zola-deploy-action@7b80b99bba8d761a6cad869bf20c64ee0ca1cc0e # v0.22.0
env:
BUILD_ONLY: true
BUILD_FLAGS: --drafts
BUILD_THEMES: false
CHECK_LINKS: true