mirror of
https://github.com/house-of-vanity/house-of-vanity.github.io.git
synced 2025-07-06 08:24:08 +00:00
This commit is contained in:
committed by
GitHub
parent
46dcfd14f0
commit
2b891b52f4
9
.github/workflows/build-and-publish.yaml
vendored
9
.github/workflows/build-and-publish.yaml
vendored
@ -9,12 +9,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3.0.0
|
||||
|
||||
- name: Get short SHA
|
||||
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
|
||||
- name: Set outputs
|
||||
id: vars
|
||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set commit id
|
||||
run: sed -e "s/tag\ =.*/tag = \"${{ env.SHORT_SHA }}\"/" -i config.toml
|
||||
|
||||
run: sed -e "s/tag\ =.*/tag = \"${{ steps.vars.outputs.sha_short }}\"/" -i config.toml
|
||||
|
||||
- name: Build and push to gh-pages branch
|
||||
uses: shalzz/zola-deploy-action@v0.17.2
|
||||
env:
|
||||
|
Reference in New Issue
Block a user