From 23a09485b4edd0c4074df293a67376f1a09a76f9 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 19 Jun 2024 14:31:58 +0200 Subject: [PATCH] Fixup the logic --- .github/workflows/publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 819744b..253ee26 100755 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish to git to static pages +name: Publish to git (static pages) permissions: contents: none @@ -18,10 +18,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - fetch-depth: 1 - token: ${{ secrets.SUDO_BOT_TOKEN }} - # Already the default value, but so you understand the push command will have creds - persist-credentials: true + # Fetch all branches to have static-pages too + fetch-depth: 0 + token: ${{ secrets.SUDO_BOT_TOKEN }} + # Already the default value, but so you understand the push command will have creds + persist-credentials: true - name: Import GPG key # v6.1.0 - 01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4