diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a9df62c..8614fe3 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 -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml + sed -i '0,/version/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 -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml + sed -i '0,/version/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 -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml + sed -i '0,/version/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 -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml + sed -i '0,/version/s/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml - name: Build wheels uses: PyO3/maturin-action@v1 with: @@ -161,7 +161,7 @@ jobs: - name: Update version if: "startsWith(github.ref, 'refs/tags/')" run: - sed -i 's/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml + sed -i '0,/version/s/version = ".*"/version = "${{ github.ref_name }}"/' Cargo.toml - name: Build sdist uses: PyO3/maturin-action@v1 with: