From 58ea2faa8993b4f2aeebe317332528164b7f21ae Mon Sep 17 00:00:00 2001 From: Tomas Abrahamsson Date: Sun, 6 Aug 2023 20:43:15 +0200 Subject: [PATCH] Migrate the release asset to softprops Both The actions/create-release and actions/upload-release-asset repos have been archived and are now read-only. They seems to have been superseded by the softprops/action-gh-action, for example. This message was emitted for the release workflow action: Upload Release Asset The following actions uses node12 which is deprecated and will be forced to run on node16: actions/create-release@v1, actions/upload-release-asset@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ --- .github/workflows/release.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a8e76d1..68ae5bc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,26 +23,14 @@ jobs: ./helpers/extract-top-changelog-entry > release-descr.txt - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.vsn }} - release_name: Release ${{ env.vsn }} + name: Release ${{ env.vsn }} draft: false prerelease: false body_path: release-descr.txt - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - # This pulls from the CREATE RELEASE step above, referencing it's ID - # to get its outputs object, which include a `upload_url`. See this - # blog post for more info: - # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./gpb-${{ env.vsn }}.tar.gz - asset_name: gpb-${{ env.vsn }}.tar.gz - asset_content_type: application/gzip + files: gpb-${{ env.vsn }}.tar.gz + fail_on_unmatched_files: true