From 04526405b82a132a716bcc13f9d0e62cbdd187ea Mon Sep 17 00:00:00 2001 From: Alexandr Bogomyakov Date: Fri, 25 Aug 2023 17:24:36 +0300 Subject: [PATCH] 2.5 --- .github/workflows/build-and-publish.yaml | 6 ++++-- config.toml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 5bf7278..aa4059c 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -6,9 +6,11 @@ jobs: runs-on: ubuntu-latest if: github.ref == 'refs/heads/zola' steps: - - name: checkout + - name: Checkout uses: actions/checkout@v3.0.0 - - name: build_and_deploy + - 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 diff --git a/config.toml b/config.toml index d792a62..a56f090 100644 --- a/config.toml +++ b/config.toml @@ -26,6 +26,8 @@ highlight_theme = "demain" version = "2.5" +tag = "LOCAL" + # control dark mode: auto | dark | toggle mode = "toggle"