Skip to content

Commit

Permalink
Separate upload environments
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarshall committed Oct 2, 2023
1 parent 586a86f commit eba5d45
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
25 changes: 20 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,42 @@ jobs:
with:
path: dist/*.tar.gz

upload_pypi:
upload_test_pypi:
if: github.event_name == 'push'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi
environment: testpypi

permissions:
id-token: write

steps:
- name: Get Artifacts
- name: Get artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Publish distribution to Test PyPI
if: github.event_name == 'push'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

upload_pypi:
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment: pypi

permissions:
id-token: write

steps:
- name: Get artifacts
uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- name: Publish distribution to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ dynamic = [
]

[project.urls]
"Documentation" = "https://pysam.readthedocs.io/en/stable/"
"Release notes" = "https://pysam.readthedocs.io/en/stable/release.html"
"Documentation" = "https://pysam.readthedocs.io"

[build-system]
requires = ["setuptools>=59.0", "Cython>=0.29.12,<4"]
Expand Down
2 changes: 1 addition & 1 deletion pysam/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pysam versioning information
__version__ = "0.22.0rc3"
__version__ = "0.22.0rc4"

__samtools_version__ = "1.18"
__bcftools_version__ = "1.18"
Expand Down

0 comments on commit eba5d45

Please sign in to comment.