Skip to content

Commit

Permalink
Merge pull request #82 from fls-bioinformatics-core/fix-publish-to-te…
Browse files Browse the repository at this point in the history
…stpypi

Fix publication workflow for TestPyPI
  • Loading branch information
pjbriggs committed Feb 8, 2024
2 parents e8022cb + 06b7492 commit ba7d8a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Workflow to build and publish RnaChipIntegrator to PyPI and TestPyPI
#
# - TestPyPI publication only on push to 'devel' branch
# - TestPyPI publication only on tagging
# - PyPI publication only for releases
#
# Based on https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
Expand All @@ -14,7 +14,7 @@ name: Publish Python distribution package to PyPI and TestPyPI
on:
push:
branches:
- 'devel'
- 'tags/**'
- 'releases/**'

jobs:
Expand Down Expand Up @@ -70,7 +70,8 @@ jobs:
# Publish to TestPyPI
publish-to-testpypi:
name: Publish Python distribution package to TestPyPI
# Should run on all pushes to 'devel' and on release
# Should run on all tag pushes
if: startsWith(github.ref, 'refs/tags/')
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit ba7d8a9

Please sign in to comment.