-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
116 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml | ||
index b4f6ef6..4c7203a 100644 | ||
--- a/.github/workflows/python.yml | ||
+++ b/.github/workflows/python.yml | ||
@@ -3,15 +3,14 @@ | ||
# | ||
# maturin generate-ci github | ||
# | ||
-name: CI | ||
+name: Python | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- - master | ||
tags: | ||
- - '*' | ||
+ - 'pycolorsaurus-*' | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
@@ -45,7 +44,7 @@ jobs: | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
- args: --release --out dist --find-interpreter | ||
+ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml | ||
sccache: 'true' | ||
manylinux: auto | ||
- name: Upload wheels | ||
@@ -76,7 +75,7 @@ jobs: | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
- args: --release --out dist --find-interpreter | ||
+ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml | ||
sccache: 'true' | ||
manylinux: musllinux_1_2 | ||
- name: Upload wheels | ||
@@ -104,7 +103,7 @@ jobs: | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
- args: --release --out dist --find-interpreter | ||
+ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
@@ -130,7 +129,7 @@ jobs: | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
target: ${{ matrix.platform.target }} | ||
- args: --release --out dist --find-interpreter | ||
+ args: --release --out dist --find-interpreter --manifest-path crates/pycolorsaurus/Cargo.toml | ||
sccache: 'true' | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
@@ -146,7 +145,7 @@ jobs: | ||
uses: PyO3/maturin-action@v1 | ||
with: | ||
command: sdist | ||
- args: --out dist | ||
+ args: --out dist --manifest-path crates/pycolorsaurus/Cargo.toml | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
@@ -156,8 +155,10 @@ jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
- if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }} | ||
+ if: "startsWith(github.ref, 'refs/tags/pycolorsaurus-')" | ||
needs: [linux, musllinux, windows, macos, sdist] | ||
+ environment: PyPi | ||
+ concurrency: PyPi | ||
permissions: | ||
# Use to sign the release artifacts | ||
id-token: write | ||
@@ -175,7 +176,7 @@ jobs: | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
uses: PyO3/maturin-action@v1 | ||
env: | ||
- MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} | ||
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | ||
with: | ||
command: upload | ||
args: --non-interactive --skip-existing wheels-*/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters