Skip to content

Commit

Permalink
Simplify & fix publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare authored Dec 22, 2023
1 parent cad0877 commit 8c8c777
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [published]

jobs:
linux:
runs-on: ubuntu-latest
build:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: PyO3/maturin-action@v1
Expand All @@ -20,38 +20,10 @@ jobs:
name: wheels
path: dist

windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: PyO3/maturin-action@v1
with:
command: build
args: --release -o dist -i 3.7
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: PyO3/maturin-action@v1
with:
command: build
args: --release -o dist --universal2 -i 3.7
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist

upload:
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/')"
needs: [ macos, windows, linux ]
needs: [ build ]
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -62,4 +34,4 @@ jobs:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing *
args: --skip-existing *

0 comments on commit 8c8c777

Please sign in to comment.