Skip to content

Commit

Permalink
[skip ci] fix github release job
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-mil committed Jul 20, 2024
1 parent 86979b2 commit 543079b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

publish:
name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on taged commits
if: startsWith(github.ref, 'refs/tags/v') # only publish to PyPI on tagged commits
runs-on: ubuntu-latest
needs:
- build
Expand Down Expand Up @@ -83,7 +83,10 @@ jobs:
runs-on: ubuntu-latest
needs:
- build
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')
environment:
name: pypi
url: https://github.com/jack-mil/bing-rewards/releases
permissions:
contents: write

Expand All @@ -101,4 +104,6 @@ jobs:
- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
files: dist/
draft: true
generate_release_notes: true
files: dist/*

0 comments on commit 543079b

Please sign in to comment.