Skip to content

Commit bc0175d

Browse files
Merge pull request #172 from code0-tech/fix/reset-cargo-version
fix: correct step for setting version
2 parents c611d87 + 3b25b86 commit bc0175d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ jobs:
3636
sudo apt-get install -y protobuf-compiler
3737
protoc --version
3838
39-
- name: Set version
40-
run: sed -i "s/version = \"0.0.0\"/version = \"${{ github.ref_name }}\"/" Cargo.toml
41-
4239
- name: Check formatting
4340
run: cargo fmt --all -- --check
4441

@@ -51,6 +48,9 @@ jobs:
5148
- name: Run tests
5249
run: cargo test --locked --features all
5350

51+
- name: Set version
52+
run: sed -i "s/version = \"0.0.0\"/version = \"${{ github.ref_name }}\"/" Cargo.toml
53+
5454
- name: Cargo Login
5555
run: cargo login ${{secrets.CARGO_REGISTRY_TOKEN}}
5656

0 commit comments

Comments
 (0)