Skip to content

Commit

Permalink
release condition
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfast committed Oct 3, 2022
1 parent c8415c8 commit d5b51d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
run: hatch build
- name: Publish package
run: hatch publish -r test --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_TEST_INDEX_AUTH}}
if: github.event_name == 'tags'
if: github.event_name != 'release'
- name: Test the released packaged
run: hatch run released:test
if: github.event_name == 'tags'
if: github.event_name != 'release'
- name: Publish to mainline
run: hatch publish --user ${{secrets.HATCH_INDEX_USER}} --auth ${{secrets.HATCH_INDEX_AUTH}}
if: github.event_name == 'release'
if: github.event_name != 'release'

0 comments on commit d5b51d3

Please sign in to comment.