commit 56a3ecf9448a7afb44d60a2a486c27472ecbf58a parent a39a004b9b69ae85d9368219ca8ec7ce05ca5ffc Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Wed, 20 Nov 2024 13:47:20 +0100 switch to softprops/action-gh-release@v2 Diffstat:
M | .github/workflows/release.yml | | | 26 | +++++++++----------------- |
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml @@ -42,24 +42,16 @@ jobs: working-directory: ${{github.workspace}}/build run: cmake -P ${{github.workspace}}/scripts/pack.cmake - - name: Create GitHub Release - id: create-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v2 with: - tag_name: ${{ github.event.inputs.version }} - release_name: Release ${{ github.event.inputs.version }} + token: ${{ secrets.GITHUB_TOKEN }} body_path: ${{github.workspace}}/doc/changelog.txt draft: true prerelease: false - - - name: Upload Release Assets to GitHub Release - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: ${{github.workspace}}/build/*${{ github.event.inputs.version }}*.{zip,deb,rpm} - asset_name: ${{ github.event.inputs.version }}-asset - asset_content_type: application/octet-stream + name: ${{ github.event.inputs.version }} + tag_name: ${{ github.event.inputs.version }} + files: | + ${{github.workspace}}/build/*${{ github.event.inputs.version }}*.zip + ${{github.workspace}}/build/*${{ github.event.inputs.version }}*.rpm + ${{github.workspace}}/build/*${{ github.event.inputs.version }}*.deb