diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index fd50121..a9df62c 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: