Skip to content

Commit

Permalink
ci/release: evaluate expression for prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed May 30, 2021
1 parent 9a866bf commit f956b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
id: check-version
run: |
[[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| echo ::set-output name=prerelease::true
|| echo "::set-output name=prerelease::true"
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: steps.check-version.outputs.prerelease == 'true'
prerelease: ${{ steps.check-version.outputs.prerelease == 'true' }}

- name: Publish to PyPI
env:
Expand Down

0 comments on commit f956b42

Please sign in to comment.