Skip to content

Update yaml

Update yaml #1451

Workflow file for this run

# On every push this script is executed
on: push
name: Build and deploy GH Pages
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
cache-dependency-path: themes/boring/yarn.lock
- name: Install JS dependencies and build CSS
run: |
cd themes/boring
yarn install --frozen-lockfile
yarn build
shell: bash
- name: build_and_deploy
uses: shalzz/zola-deploy-action@master
env:
# Target branch
PAGES_BRANCH: gh-pages
# Provide personal access token
TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}