Skip to content

Commit d854116

Browse files
0.1.14 (#87)
* 0.1.14 * publish 0.1.14 from CI
1 parent c608d0c commit d854116

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/rust.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,32 @@ env:
1818
CARGO_TERM_COLOR: always
1919

2020
jobs:
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

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "cargo2junit"
33
description = "Converts cargo's json output (from stdin) to JUnit XML (to stdout)"
4-
version = "0.1.13"
4+
version = "0.1.14"
55
authors = ["John Erickson <john.t.erickson@gmail.com>"]
66
edition = "2021"
77
repository = "https://github.com/johnterickson/cargo2junit"

0 commit comments

Comments
 (0)