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 5
5
types : [created]
6
6
7
7
jobs :
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 :
9
19
runs-on : ubuntu-latest
10
20
11
21
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
88
88
## Release a new version
89
89
90
90
First, 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 ` .
92
93
93
94
After landing a commit with those two changes, run the release script:
94
95
(requires the [ GitHub CLI] ( https://cli.github.com/ ) )
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " scip"
3
- version = " 0.1.1 "
3
+ version = " 0.3.0 "
4
4
edition = " 2021"
5
5
license = " Apache-2.0"
6
6
description = """
Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ if ! grep -q "$NEW_VERSION" cmd/scip/version.txt; then
20
20
exit 1
21
21
fi
22
22
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
+
23
28
if ! git diff --quiet; then
24
29
echo " error: Found unstaged changes; aborting."
25
30
exit 1
You can’t perform that action at this time.
0 commit comments