Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SemyonSinchenko authored Oct 12, 2024
1 parent 26729c3 commit 5fe9c55
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Update version
if: "startsWith(github.ref, 'refs/tags/')"
run:
sed 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
- name: Update version
if: "startsWith(github.ref, 'refs/tags/')"
run:
sed 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
- name: Update version
if: "startsWith(github.ref, 'refs/tags/')"
run:
sed 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- name: Update version
if: "startsWith(github.ref, 'refs/tags/')"
run:
sed 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
Expand All @@ -158,6 +158,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update version
if: "startsWith(github.ref, 'refs/tags/')"
run:
sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml
- name: Build sdist
uses: PyO3/maturin-action@v1
with:
Expand Down

0 comments on commit 5fe9c55

Please sign in to comment.