Files
house-of-vanity.github.io/.github/workflows/build-and-publish.yaml
2023-08-25 17:24:36 +03:00

18 lines
516 B
YAML

# 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/zola'
steps:
- name: Checkout
uses: actions/checkout@v3.0.0
- name: Set commit id
run: sed -e "s/tag\ =.*/tag = \"${REV}\"/" -i config.toml
- name: Build and push to gh-pages branch
uses: shalzz/zola-deploy-action@v0.17.2
env:
PAGES_BRANCH: gh-pages
TOKEN: ${{ secrets.GITHUB_TOKEN }}