File tree Expand file tree Collapse file tree 3 files changed +17
-6
lines changed
Expand file tree Collapse file tree 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1818 CARGO_TERM_COLOR : always
1919
2020jobs :
21+ publish :
22+ needs : build
23+ runs-on : ubuntu-latest
24+ if : github.ref == 'refs/heads/main'
25+ steps :
26+ - uses : actions/checkout@v3
27+ - name : publish if necessary
28+ run : |
29+ export THIS_VERSION=$(cargo pkgid | sed 's/.*#\(.*\)/\1/')
30+ export LKG_VERSION=$(curl "https://crates.io/api/v1/crates/cargo2junit/versions" | jq .versions[0].num -r)
31+ if [ "$THIS_VERSION" != "$LKG_VERSION" ]; then
32+ cargo publish
33+ fi
34+ env :
35+ CARGO_REGISTRY_TOKEN : ${{ secrets.CRATES_IO }}
2136 build :
22-
2337 runs-on : ${{ matrix.os }}
2438 strategy :
2539 matrix :
2640 include :
2741 - name : Linux x86_64 stable
2842 os : ubuntu-latest
29- rust : stable
3043 - name : Windows x86_64 stable
3144 os : windows-latest
32- rust : stable
3345 - name : Mac x86_64 stable
3446 os : macos-latest
35- rust : stable
3647
3748 steps :
3849 - uses : actions/checkout@v3
Original file line number Diff line number Diff line change 11[package ]
22name = " cargo2junit"
33description = " Converts cargo's json output (from stdin) to JUnit XML (to stdout)"
4- version = " 0.1.13 "
4+ version = " 0.1.14 "
55authors = [" John Erickson <john.t.erickson@gmail.com>" ]
66edition = " 2021"
77repository = " https://github.com/johnterickson/cargo2junit"
You can’t perform that action at this time.
0 commit comments