From b520b4686c36cd426099b23495ab0dd7097a4632 Mon Sep 17 00:00:00 2001 From: Sandy Carter Date: Sat, 10 Jun 2023 19:16:59 -0400 Subject: [PATCH] Use ncipollo/release-action to release version actions/create-release is no longer maintained --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a9dc2a..6342fc8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,7 @@ jobs: # Run CMake to generate project files - name: Generate project files run: | - cmake -B "${{ env.CMAKE_BUILD_DIR }}" -DCMAKE_INSTALL_PREFIX="${{ env.CMAKE_INSTALL_DIR }}" -DCMAKE_DEBUG_POSTFIX=d -DBGFX_BUILD_EXAMPLES=OFF -DBGFX_BUILD_TOOLS=ON -DBGFX_INSTALL=ON -DBGFX_AMALGAMATED=ON -DCMAKE_BUILD_TYPE=Release + cmake -B "${{ env.CMAKE_BUILD_DIR }}" "-DCMAKE_INSTALL_PREFIX=${{ env.CMAKE_INSTALL_DIR }}" -DCMAKE_DEBUG_POSTFIX=d -DBGFX_BUILD_EXAMPLES=OFF -DBGFX_BUILD_TOOLS=ON -DBGFX_INSTALL=ON -DBGFX_AMALGAMATED=ON -DCMAKE_BUILD_TYPE=Release # Build the install targets - name: Build run: | @@ -90,11 +90,11 @@ jobs: runs-on: ubuntu-latest needs: [ version, build ] if: github.repository == 'bkaradzic/bgfx.cmake' && github.event_name == 'push' + permissions: + contents: write steps: + - uses: actions/checkout@v3 - name: Create Release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 with: - tag_name: ${{ needs.version.outputs.tag }} - release_name: ${{ needs.version.outputs.tag }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ needs.version.outputs.tag }}