-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
5 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,29 +223,14 @@ jobs: | |
path: dist/*whl | ||
{% endif %} | ||
{% endfor %} | ||
- name: Publish package to PyPI (Windows) | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
if: > | ||
github.event_name == 'push' | ||
&& startsWith(github.ref, 'refs/tags') | ||
&& startsWith(runner.os, 'Windows') | ||
&& !startsWith(matrix.python-version, 'pypy') | ||
{% if with_future_python %} | ||
&& !startsWith(matrix.python-version, '%(future_python_version)s') | ||
{% endif %} | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TWINE_PASSWORD }} | ||
skip-existing: true | ||
packages-dir: dist/ | ||
- name: Publish package to PyPI (mac) | ||
# We cannot 'uses: pypa/[email protected]' because | ||
# that's apparently a container action, and those don't run on | ||
# the Mac. | ||
- name: Publish package to PyPI (Non-Linux) | ||
# We cannot use pypa/gh-action-pypi-publish because that | ||
# is a container action, and those don't run on macOS | ||
# or Windows GHA runners. | ||
if: > | ||
github.event_name == 'push' | ||
&& startsWith(github.ref, 'refs/tags') | ||
&& startsWith(runner.os, 'Mac') | ||
&& !startsWith(runner.os, 'Linux') | ||
&& !startsWith(matrix.python-version, 'pypy') | ||
{% if with_future_python %} | ||
&& !startsWith(matrix.python-version, '%(future_python_version)s') | ||
|