Skip to content

Commit

Permalink
use github action softprops/action-gh-release@v1 for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Sep 18, 2022
1 parent 9df5ff0 commit ca9ff47
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/*'

0 comments on commit ca9ff47

Please sign in to comment.