From ca9ff4767b66246642221ef57265b536a662cad7 Mon Sep 17 00:00:00 2001 From: hub Date: Sun, 18 Sep 2022 20:46:34 +0200 Subject: [PATCH] use github action softprops/action-gh-release@v1 for releases --- .github/workflows/verify.yaml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index de3e41b..c1768d7 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -13,20 +13,8 @@ jobs: - run: make lint test - run: make release if: startsWith(github.event.ref, 'refs/tags/v') - - uses: actions/create-release@v1 - if: startsWith(github.event.ref, 'refs/tags/v') - id: create_release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: ${{ github.ref }} - body: 'automated release of ${{ github.ref }} at commit ${{ github.sha }}' - draft: false - prerelease: false - - uses: csexton/release-asset-action@v2 - if: startsWith(github.event.ref, 'refs/tags/v') + - uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/v') with: - pattern: "out/*" - github-token: ${{ secrets.GITHUB_TOKEN }} - release-url: ${{ steps.create_release.outputs.upload_url }} + body: 'Release generated at commit: ${{ github.sha }}' + files: 'out/*'