Skip to content

Commit

Permalink
Release to test-pypi on branch 'test-release'
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed Dec 28, 2024
1 parent fe0290f commit 1b385db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ jobs:
name: Upload release
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')

environment:
name: pypi
Expand All @@ -391,6 +390,13 @@ jobs:
- name: Publish PyPI package
uses: pypa/gh-action-pypi-publish@release/v1
if: startsWith(github.ref, 'refs/tags/v')

- name: Publish TestPyPI package
uses: pypa/gh-action-pypi-publish@release/v1
if: github.ref == 'refs/heads/test-release'
with:
repository-url: https://test.pypi.org/legacy/

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 1b385db

Please sign in to comment.