mirror of
https://github.com/house-of-vanity/house-of-vanity.github.io.git
synced 2025-07-07 00:34:07 +00:00
18 lines
527 B
YAML
18 lines
527 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 }}\"/" -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 }}
|