diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 2ae0641c..97d952b4 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -8,11 +8,13 @@ jobs: runs-on: ubuntu-latest # If forked, changed to your username to enable auto-releases if: github.repository_owner == 'itzg' - permissions: - # allow for creating releases/tags - contents: write steps: - uses: zenengeo/github-auto-release-action@main with: stable-duration: 3d - force-duration: 14d + force-duration: 14d + # It is important to use a token other than the workflow allocated GITHUB_TOKEN, + # since actions prevent loops by disallowing recursive workflow triggers with that token. + # In this case, the created tag needs to trigger the "Build and Publish" workflow. + token: '${{ secrets.GH_TOKEN }}' + diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38ff05c6..c9d6c956 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,6 +18,7 @@ on: - "zensical.toml" - ".readthedocs.yaml" - "renovate.json5" + workflow_dispatch: jobs: build: