From 2ab7fb69ecd2eee354a1fe8f09cf35e90db3fcf2 Mon Sep 17 00:00:00 2001 From: Galarius Date: Sat, 24 Feb 2024 23:48:30 +0200 Subject: [PATCH] Update build_release job permissions --- .github/workflows/release.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66b5b51..ed03256 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,8 @@ jobs: build_release: name: Build Release runs-on: ${{ matrix.config.os }} + permissions: + contents: write needs: create_release strategy: matrix: @@ -40,7 +42,7 @@ jobs: CONAN_HOME: ${{ github.workspace }}/.conan-home steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Linux - Install prerequisites if: "contains(matrix.config.os, 'ubuntu')" @@ -215,14 +217,15 @@ jobs: asset_path: ${{github.workspace}}/.build-universal/opencl-language-server-darwin-universal.tar.gz asset_name: opencl-language-server-darwin-universal.tar.gz asset_content_type: application/gzip - - - name: Linux - Archive Licenses + + + - name: Archive Licenses if: "contains(matrix.config.os, 'ubuntu')" run: | cd ${{github.workspace}}/.conan-x86_64 tar -czvf licenses.tar.gz licenses - - name: Linux - Upload Licenses + - name: Upload Licenses if: "contains(matrix.config.os, 'ubuntu')" uses: actions/upload-release-asset@v1 env: