From e8b45683ca8c4da07e2f57adf396d78d1a61543a Mon Sep 17 00:00:00 2001 From: Phil Howard Date: Fri, 25 Oct 2024 12:49:30 +0100 Subject: [PATCH] CI: Switch to action-gh-release. Switch from the long deprecated upload-release-asset to action-gh-release and attempt to replicate the same behaviour. Avoids nodejs and set-output deprecation warnings: - https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ - https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/cmake.yml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) 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