diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 4e20af0..7558f65 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -79,22 +79,12 @@ jobs: - name: Upload .zip if: github.event_name == 'release' - 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 - name: Upload .tar.gz if: github.event_name == 'release' - 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