From ddcffff0eea407070e4e6395199a46a7fbc43724 Mon Sep 17 00:00:00 2001 From: SimonStnn Date: Sun, 11 Aug 2024 13:52:15 +0200 Subject: [PATCH] Add workflow permissions #292 --- .github/workflows/build-and-release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 97630eb..33640c9 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -5,6 +5,9 @@ on: branches: - main +permissions: + contents: write + jobs: build: runs-on: ubuntu-latest @@ -49,6 +52,6 @@ jobs: for asset in ./build/*.zip; do assets+=("$asset") done - tag_name="test_v${{ env.VERSION }}" + tag_name="v${{ env.VERSION }}" gh release create --generate-notes --latest "$tag_name" gh release upload "$tag_name" "${assets[@]}"