Skip to content

Commit

Permalink
Fix PyPI upload of macOS wheels
Browse files Browse the repository at this point in the history
Fix:

```
Error: Container action is only supported on Linux
```
  • Loading branch information
nsoranzo committed Feb 26, 2021
1 parent a20865f commit 49cd01e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy
on: [push, pull_request]
jobs:
deploy:
build_packages:
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -28,8 +28,21 @@ jobs:
python setup.py sdist
- name: Check packages
run: twine check dist/*
- uses: actions/upload-artifact@v2
with:
name: packages
path: dist/

upload_pypi:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'bxlab'
needs: build_packages
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: packages
path: dist
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'bxlab'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit 49cd01e

Please sign in to comment.