Skip to content

Commit f47646d

Browse files
authored
Merge pull request #80 from Ericgig/misc.build2
Finish build.yml
2 parents 7bc00e3 + 6ab8afe commit f47646d

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)