Skip to content

Commit

Permalink
Fix release permissions (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrauer-hatci committed Mar 4, 2024
1 parent 6310853 commit a56a6fa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cmake-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CMake Release

permissions:
contents: read
contents: write
pages: write
id-token: write

Expand Down Expand Up @@ -40,12 +40,6 @@ jobs:
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Upload Release Binary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.event.release.tag_name }} ${{github.workspace}}/build/demo

# Generate documentation
- name: Generate Docs
uses: mattnotmitt/doxygen-action@v1
Expand All @@ -62,3 +56,9 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

- name: Upload Release Binary
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
gh release upload ${{ github.event.release.tag_name }} ${{github.workspace}}/build/demo

0 comments on commit a56a6fa

Please sign in to comment.