Skip to content

Commit

Permalink
- fix PyPI upload step for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed May 24, 2024
1 parent ff53958 commit ae0a948
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions config/c-code/tests.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit ae0a948

Please sign in to comment.