Skip to content

Commit

Permalink
Merge pull request #213 from offbyone/release-on-tag
Browse files Browse the repository at this point in the history
Release on tag
  • Loading branch information
offbyone committed Aug 7, 2022
2 parents d3b5a81 + ad27567 commit 592cf4e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
# Fetch all tags
# Fetch all tags; this is needed for hatch-vcs
fetch-depth: 0

- name: Install build dependencies
Expand All @@ -38,7 +38,9 @@ jobs:
needs:
- pure-python-wheel-and-sdist
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: |
(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) ||
(github.event_name == 'workflow_dispatch' && startsWith(github.event.ref, 'refs/tags'))
steps:
- uses: actions/download-artifact@v2
Expand All @@ -51,5 +53,4 @@ jobs:
with:
skip_existing: true
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: "https://test.pypi.org/legacy/"
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 592cf4e

Please sign in to comment.