|
| 1 | +diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml |
| 2 | +index b4f6ef6..4c7203a 100644 |
| 3 | +--- a/.github/workflows/python.yml |
| 4 | ++++ b/.github/workflows/python.yml |
| 5 | +@@ -3,15 +3,14 @@ |
| 6 | + # |
| 7 | + # maturin generate-ci github |
| 8 | + # |
| 9 | +-name: CI |
| 10 | ++name: Python |
| 11 | + |
| 12 | + on: |
| 13 | + push: |
| 14 | + branches: |
| 15 | + - main |
| 16 | +- - master |
| 17 | + tags: |
| 18 | +- - '*' |
| 19 | ++ - 'pycolorsaurus-*' |
| 20 | + pull_request: |
| 21 | + workflow_dispatch: |
| 22 | + |
| 23 | +@@ -45,7 +44,7 @@ jobs: |
| 24 | + uses: PyO3/maturin-action@v1 |
| 25 | + with: |
| 26 | + target: ${{ matrix.platform.target }} |
| 27 | +- args: --release --out dist --find-interpreter |
| 28 | ++ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml |
| 29 | + sccache: 'true' |
| 30 | + manylinux: auto |
| 31 | + - name: Upload wheels |
| 32 | +@@ -76,7 +75,7 @@ jobs: |
| 33 | + uses: PyO3/maturin-action@v1 |
| 34 | + with: |
| 35 | + target: ${{ matrix.platform.target }} |
| 36 | +- args: --release --out dist --find-interpreter |
| 37 | ++ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml |
| 38 | + sccache: 'true' |
| 39 | + manylinux: musllinux_1_2 |
| 40 | + - name: Upload wheels |
| 41 | +@@ -104,7 +103,7 @@ jobs: |
| 42 | + uses: PyO3/maturin-action@v1 |
| 43 | + with: |
| 44 | + target: ${{ matrix.platform.target }} |
| 45 | +- args: --release --out dist --find-interpreter |
| 46 | ++ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml |
| 47 | + sccache: 'true' |
| 48 | + - name: Upload wheels |
| 49 | + uses: actions/upload-artifact@v4 |
| 50 | +@@ -130,7 +129,7 @@ jobs: |
| 51 | + uses: PyO3/maturin-action@v1 |
| 52 | + with: |
| 53 | + target: ${{ matrix.platform.target }} |
| 54 | +- args: --release --out dist --find-interpreter |
| 55 | ++ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml |
| 56 | + sccache: 'true' |
| 57 | + - name: Upload wheels |
| 58 | + uses: actions/upload-artifact@v4 |
| 59 | +@@ -146,7 +145,7 @@ jobs: |
| 60 | + uses: PyO3/maturin-action@v1 |
| 61 | + with: |
| 62 | + command: sdist |
| 63 | +- args: --out dist |
| 64 | ++ args: --out dist --manifest-path crates/pycolorsaurus/Cargo.toml |
| 65 | + - name: Upload sdist |
| 66 | + uses: actions/upload-artifact@v4 |
| 67 | + with: |
| 68 | +@@ -156,8 +155,10 @@ jobs: |
| 69 | + release: |
| 70 | + name: Release |
| 71 | + runs-on: ubuntu-latest |
| 72 | +- if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} |
| 73 | ++ if: "startsWith(github.ref, 'refs/tags/pycolorsaurus-')" |
| 74 | + needs: [linux, musllinux, windows, macos, sdist] |
| 75 | ++ environment: PyPi |
| 76 | ++ concurrency: PyPi |
| 77 | + permissions: |
| 78 | + # Use to sign the release artifacts |
| 79 | + id-token: write |
| 80 | +@@ -175,7 +176,7 @@ jobs: |
| 81 | + if: ${{ startsWith(github.ref, 'refs/tags/') }} |
| 82 | + uses: PyO3/maturin-action@v1 |
| 83 | + env: |
| 84 | +- MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} |
| 85 | ++ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
| 86 | + with: |
| 87 | + command: upload |
| 88 | + args: --non-interactive --skip-existing wheels-*/* |
0 commit comments