Skip to content

Commit

Permalink
Update build_release job permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Galarius committed Feb 24, 2024
1 parent e85dc19 commit 2ab7fb6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
build_release:
name: Build Release
runs-on: ${{ matrix.config.os }}
permissions:
contents: write
needs: create_release
strategy:
matrix:
Expand All @@ -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')"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2ab7fb6

Please sign in to comment.