diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f8869bd..49eae25 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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: @@ -62,4 +34,4 @@ jobs: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} with: command: upload - args: --skip-existing * \ No newline at end of file + args: --skip-existing *