Fix
Some checks failed
Build and deploy GH Pages / build (push) Has been cancelled

This commit is contained in:
Alexandr Bogomyakov
2024-10-04 03:42:08 +03:00
committed by GitHub
parent 46dcfd14f0
commit 2b891b52f4

View File

@ -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: