Skip to content

Commit

Permalink
Fix auto-release on tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Nov 10, 2021
1 parent a6fedb0 commit ffb20c0
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/powerset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:

release:
name: Create release
if: ${{ github.event_name }} == "push" # tags
if: startsWith(github.ref, 'refs/tags') && github.run_attempt == 1
needs: check-powerset
runs-on: ubuntu-latest
steps:
Expand All @@ -140,9 +140,11 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ""
body: "See the [changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md) for details."
draft: false
prerelease: |
contains(${{ github.ref }}, 'alpha')
|| contains(${{ github.ref }}, 'beta')
|| contains(${{ github.ref }}, 'rc')
${{
contains(github.ref, 'alpha')
|| contains(github.ref, 'beta')
|| contains(github.ref, 'rc')
}}

0 comments on commit ffb20c0

Please sign in to comment.