File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 merge_group :
55 push :
66 branches :
7- - main
7+ - test-publish
88 tags :
99 - ' *'
1010 release :
3838 with :
3939 name : python-package-distributions
4040 path : dist/
41+ if-no-files-found : error
4142
4243 publish-to-pypi :
4344 if : github.repository_owner == 'sgkit-dev' && github.event_name == 'release'
@@ -56,11 +57,13 @@ jobs:
5657 with :
5758 name : python-package-distributions
5859 path : dist/
60+ - name : Show artifacts
61+ run : ls -lah dist
5962 - uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
6063
6164
6265 publish-to-testpypi :
63- if : github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
66+ if : github.repository_owner == 'sgkit-dev' && github.event_name == 'push' && (github.ref_name == 'test-publish' || startsWith(github.event.ref, 'refs/tags') )
6467 needs :
6568 - packaging
6669 runs-on : ubuntu-latest
7780 with :
7881 name : python-package-distributions
7982 path : dist/
83+ - name : Show artifacts
84+ run : ls -lah dist
8085 - uses : pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
8186 with :
87+ verbose : true
8288 repository-url : https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ requires-python = ">=3.11"
2020classifiers = [
2121 " Development Status :: 4 - Beta" ,
2222 " Operating System :: POSIX :: Linux" ,
23- " Operating System :: MacOS :: MacOS X" ,
2423 " Intended Audience :: Science/Research" ,
2524 " Programming Language :: Python" ,
2625 " Programming Language :: Python :: 3" ,
You can’t perform that action at this time.
0 commit comments