From a56a6fa09730680aaf7273c0cc08cb76fb42e88c Mon Sep 17 00:00:00 2001 From: kbrauer-hatci <161084109+kbrauer-hatci@users.noreply.github.com> Date: Mon, 4 Mar 2024 15:09:53 -0500 Subject: [PATCH] Fix release permissions (#10) --- .github/workflows/cmake-release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake-release.yml b/.github/workflows/cmake-release.yml index ec1dc56..ba7198a 100644 --- a/.github/workflows/cmake-release.yml +++ b/.github/workflows/cmake-release.yml @@ -1,7 +1,7 @@ name: CMake Release permissions: - contents: read + contents: write pages: write id-token: write @@ -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 @@ -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