File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 55 types : [created]
66
77jobs :
8- release-image :
8+ release-crate :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : ./.github/actions/asdf
13+ with :
14+ rust : true
15+ - run : cargo publish --token '${{ secrets.CRATES_TOKEN }}'
16+ working-directory : bindings/rust
17+
18+ build-go-binaries :
919 runs-on : ubuntu-latest
1020
1121 strategy :
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ PACKAGE=MY_PACKAGE_NAME SRC_ACCESS_TOKEN=MY_TOKEN SRC_ENDPOINT=https://sourcegra
8888## Release a new version
8989
9090First, add release notes to the [ CHANGELOG] ( CHANGELOG.md ) .
91- Next, update the version in ` cmd/scip/version.txt ` .
91+ Next, update the version in ` cmd/scip/version.txt `
92+ and ` bindings/rust/Cargo.toml ` .
9293
9394After landing a commit with those two changes, run the release script:
9495(requires the [ GitHub CLI] ( https://cli.github.com/ ) )
Original file line number Diff line number Diff line change 11[package ]
22name = " scip"
3- version = " 0.1.1 "
3+ version = " 0.3.0 "
44edition = " 2021"
55license = " Apache-2.0"
66description = """
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ if ! grep -q "$NEW_VERSION" cmd/scip/version.txt; then
2020 exit 1
2121fi
2222
23+ if ! grep -q " version = \" $NEW_VERSION \" " bindings/rust/Cargo.toml; then
24+ echo " error: SCIP version in bindings/rust/Cargo.toml doesn't match NEW_VERSION=$NEW_VERSION "
25+ exit 1
26+ fi
27+
2328if ! git diff --quiet; then
2429 echo " error: Found unstaged changes; aborting."
2530 exit 1
You can’t perform that action at this time.
0 commit comments