From d4a1c15926b76ae62c7f91d5855c54cd257ab30d Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 9 Sep 2024 17:38:17 +0200 Subject: [PATCH] Use softprops/action-gh-release@v2 action instead of deprecated actions/create-release & actions/upload-release-asset --- .github/workflows/readme-release.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/readme-release.yml b/.github/workflows/readme-release.yml index 5d67b33..789351d 100644 --- a/.github/workflows/readme-release.yml +++ b/.github/workflows/readme-release.yml @@ -171,24 +171,15 @@ jobs: if: env.VERSIONTAG_THIS != '' run: docker push --all-tags mlocati/php-extension-installer - name: Create release - id: create_release if: env.VERSIONTAG_THIS != '' - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: tag_name: ${{ env.VERSIONTAG_THIS }} - release_name: ${{ env.RELEASE_NAME }} + name: ${{ env.RELEASE_NAME }} body: ${{ env.RELEASE_NOTES }} draft: false prerelease: false - - name: Upload release asset - if: env.VERSIONTAG_THIS != '' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./install-php-extensions - asset_name: install-php-extensions - asset_content_type: application/octet-stream + generate_release_notes: false + fail_on_unmatched_files: true + files: | + install-php-extensions