From 9c6b9d5ba29144ce748cb6564ba95fb34154b367 Mon Sep 17 00:00:00 2001 From: Joey den Broeder Date: Wed, 10 Jul 2024 11:15:01 +0100 Subject: [PATCH] Replace deprecated release actions Use `softprops/action-gh-release` instead. --- .github/workflows/deploy.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ffc23a4a..853985c5 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -38,21 +38,12 @@ jobs: path: dist - name: Create Github release id: create-release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/heads/master') with: + name: "${{ needs.build.outputs.version_tag }}: ${{ github.event.pull_request.title }}" tag_name: ${{ needs.build.outputs.version_tag }} - release_name: "${{ needs.build.outputs.version_tag }}: ${{ github.event.pull_request.title }}" body: ${{ github.event.pull_request.body }} - draft: true - prerelease: false - - name: Upload release asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create-release.outputs.upload_url }} - asset_path: dist/cf-mendix-buildpack.zip - asset_name: cf-mendix-buildpack.zip - asset_content_type: application/zip + files: | + dist/cf-mendix-buildpack.zip + token: ${{ secrets.GITHUB_TOKEN }}