Files
house-of-vanity.github.io/.github/workflows/build-and-publish.yaml
Alexandr Bogomyakov e9fb829870 Fix
2024-10-04 03:32:21 +03:00

18 lines
539 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 = \"${{ github.sha.substr(0,7) }}\"/" -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 }}