Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
merge_group:
push:
branches:
- main
- test-publish
tags:
- '*'
release:
Expand Down Expand Up @@ -38,6 +38,7 @@ jobs:
with:
name: python-package-distributions
path: dist/
if-no-files-found: error

publish-to-pypi:
if: github.repository_owner == 'sgkit-dev' && github.event_name == 'release'
Expand All @@ -56,11 +57,13 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Show artifacts
run: ls -lah dist
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1


publish-to-testpypi:
if: github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && (github.ref_name == 'test-publish' || startsWith(github.event.ref, 'refs/tags'))
needs:
- packaging
runs-on: ubuntu-latest
Expand All @@ -77,6 +80,9 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Show artifacts
run: ls -lah dist
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
Expand Down