File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+ paths :
7+ - " Cargo.toml"
8+ - " .github/workflows/release.yml"
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions-rs/toolchain@v1
15+ with :
16+ toolchain : stable
17+ override : true
18+ - name : Install protobuf
19+ uses : taiki-e/install-action@v2
20+ with :
21+ tool : protoc
22+ - name : Checkout
23+ uses : actions/checkout@v2
24+ - name : get version
25+ run : echo PACKAGE_VERSION=$(sed -nE 's/^\s*version = "(.*?)"/\1/p' Cargo.toml) >> $GITHUB_ENV
26+ - name : check published version
27+ run : echo PUBLISHED_VERSION=$(cargo search kcl --limit 1 | sed -nE 's/^[^"]*"//; s/".*//1p' -) >> $GITHUB_ENV
28+ - name : cargo login
29+ if : env.PACKAGE_VERSION != env.PUBLISHED_VERSION
30+ run : cargo login ${{ secrets.CRATES_IO_TOKEN }}
31+ - name : cargo package
32+ if : env.PACKAGE_VERSION != env.PUBLISHED_VERSION
33+ run : |
34+ cargo package
35+ echo "We will publish:" $PACKAGE_VERSION
36+ echo "This is current latest:" $PUBLISHED_VERSION
37+ - name : Publish KCL
38+ if : env.PACKAGE_VERSION != env.PUBLISHED_VERSION
39+ run : |
40+ echo "# Cargo Publish"
41+ cargo publish --no-verify
Original file line number Diff line number Diff line change 1+ name : Test
2+
3+ on :
4+ pull_request :
5+ branches : [ "main" ]
6+
7+ env :
8+ CARGO_TERM_COLOR : always
9+
10+ jobs :
11+ test :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Install protobuf
16+ uses : taiki-e/install-action@v2
17+ with :
18+ tool : protoc
19+ - name : Build
20+ run : cargo build --verbose
21+ - name : Run Clippy
22+ run : cargo clippy --all-targets --all-features -- -Dclippy::all
23+ - name : Run tests
24+ run : cargo test --verbose
Original file line number Diff line number Diff line change 11[package ]
22name = " ddtrace"
3- version = " 0.0.6 "
3+ version = " 0.0.7 "
44authors = [" David Steiner <david_j_steiner@yahoo.co.nz" , " Fergus Strangways-Dixon <fergusdixon101@gmail.com>" ]
55edition = " 2021"
66license = " MIT"
You can’t perform that action at this time.
0 commit comments