File tree Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Expand file tree Collapse file tree 1 file changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -54,13 +54,11 @@ jobs:
5454 - name : Verify this is not a dev version
5555 shell : bash
5656 run : |
57- if [[ dist/*.whl == *"dev"* ]]; then echo "Should be refused"; fi #then exit 1; fi
58- if [[ "$GITHUB_REF" == *"master"* ]]; then echo "Should be refused"; fi #then exit 1; fi
57+ if [[ dist/*dev*.whl ]]; then exit 1; fi
58+ if [[ "$GITHUB_REF" == *"master"* ]]; then exit 1; fi
59+
5960 - name : Publish distribution to PyPI
60- run : |
61- echo "Disabled for testing purpose."
62- ls dist/*
63- # uses: pypa/gh-action-pypi-publish@release/v1
61+ uses : pypa/gh-action-pypi-publish@release/v1
6462
6563 github-release :
6664 name : >-
@@ -116,9 +114,6 @@ jobs:
116114 name : python-package-distributions
117115 path : dist/
118116 - name : Publish distribution to TestPyPI
119- run : |
120- echo "Pushing to testpypi disabled while we work on this workflow"
121- ls dist/*
122- # uses: pypa/gh-action-pypi-publish@release/v1
123- # with:
124- # repository-url: https://test.pypi.org/legacy/
117+ uses : pypa/gh-action-pypi-publish@release/v1
118+ with :
119+ repository-url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments