Skip to content

Commit

Permalink
Make github workflows match
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbinns committed Sep 13, 2023
1 parent b8a1149 commit 5cd0636
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/build-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-22.04, windows-2022, macos-11]

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Build wheels
uses: pypa/[email protected]
env:
Expand All @@ -28,7 +24,6 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: wheelhouse
path: ./wheelhouse/*.whl


Expand All @@ -38,10 +33,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
Expand All @@ -59,7 +50,6 @@ jobs:

- uses: actions/upload-artifact@v3
with:
name: wheelhouse
path: ./wheelhouse/*.whl


Expand All @@ -69,34 +59,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
pip install --upgrade pip
- name: Create source dist
run: python setup.py sdist --for-pypi

- uses: actions/upload-artifact@v3
with:
name: wheelhouse
path: ./dist/*

pypi_publish:
needs: [build_source, build_binary_native, build_binary_qemu]
runs-on: ubuntu-latest
permissions:
id-token: write

steps:
- name: Stage wheels
uses: actions/download-artifact@v3
with:
name: wheelhouse
name: artifact
path: dist

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

1 change: 0 additions & 1 deletion .github/workflows/build-testpypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
pypi_publish:
needs: [build_source, build_binary_native, build_binary_qemu]
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write

Expand Down

0 comments on commit 5cd0636

Please sign in to comment.