diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e537a2e55..509e72d5e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -195,22 +195,12 @@ jobs: - name: Upload tar if: github.event_name == 'release' && matrix.release-suffix != '' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + uses: softprops/action-gh-release@v1 with: - asset_path: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.tar.gz - upload_url: ${{github.event.release.upload_url}} - asset_name: ${{env.RELEASE_FILE}}.tar.gz - asset_content_type: application/octet-stream #?? + files: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.tar.gz - name: Upload zip if: github.event_name == 'release' && matrix.release-suffix != '' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + uses: softprops/action-gh-release@v1 with: - asset_path: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.zip - upload_url: ${{github.event.release.upload_url}} - asset_name: ${{env.RELEASE_FILE}}.zip - asset_content_type: application/zip + files: ${{runner.workspace}}/build/${{env.RELEASE_FILE}}.zip