From cdc4068963216992c0a8f9840b290c8b222f0ae4 Mon Sep 17 00:00:00 2001 From: Christian Roessner Date: Wed, 15 May 2024 15:31:57 +0200 Subject: [PATCH] Update condition and token in github action The github action in 'build-stable.yaml' has been updated with a new condition for release. It now triggers only if the github reference starts with 'refs/tags/'. The token has also been updated from 'GITHUB_TOKEN' to 'NAUTHILUS_RELEASE' which specifies the token to be used for release authentication. Signed-off-by: Christian Roessner --- .github/workflows/build-stable.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-stable.yaml b/.github/workflows/build-stable.yaml index 90f281c4..761c5564 100644 --- a/.github/workflows/build-stable.yaml +++ b/.github/workflows/build-stable.yaml @@ -41,6 +41,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.NAUTHILUS_RELEASE }} files: server/nauthilus-${{ matrix.goos }}-${{ matrix.goarch }}