Skip to content

Commit

Permalink
A new and resilient way to create github releases if they don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Oct 26, 2021
1 parent b310eca commit 117db12
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ jobs:
- name: Create GitHub release
id: release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: ncipollo/release-action@v1
with:
tag_name: ${{ env.ARTIFACT_VERSION }}
release_name: ${{ env.ARTIFACT_VERSION }}
tag: ${{ env.ARTIFACT_VERSION }}
name: ${{ env.ARTIFACT_VERSION }}
allowUpdates: true
omitBody: true
omitPrereleaseDuringUpdate: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Save release upload URL to artifact
run: echo "${{ steps.release.outputs.upload_url }}" > artifacts/release-upload-url
Expand Down

0 comments on commit 117db12

Please sign in to comment.