Skip to content

Commit

Permalink
Handle pre-release (-rcX)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Sep 14, 2023
1 parent a4ef8f2 commit a88aa6c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,18 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- run: |
echo ${{ github.ref }}
- if: ${{ contains(github.ref, '-rc') }}
run: |
echo "ok"
- if: ${{ contains(github.ref, '-rc') && true || false }}
run: |
echo "ok"
- if: ${{ ! contains(github.ref, '-rc') }}
run: |
echo "no"
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v1
with:
prerelease: ${{ contains(github.ref, '-rc') }}

0 comments on commit a88aa6c

Please sign in to comment.