File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- name : " Test"
1
+ name : " Build & Test"
2
2
3
3
on :
4
4
push :
50
50
- name : " [Rust] [optify] Test"
51
51
run : cargo test --release
52
52
working-directory : ./rust/optify
53
+ - name : " [Rust] Publish"
54
+ if : github.ref == 'refs/heads/main'
55
+ shell : bash
56
+ # It probably just fails if the crate is already published.
57
+ # We want to only be lenient for the `cargo publish`, but we would still want to clearly see that an issue happened during the run.
58
+ continue-on-error : true
59
+ run : |
60
+ cargo login
61
+ cargo publish
62
+ env :
63
+ CARGO_REGISTRY_TOKEN : ${{ secrets.CARGO_REGISTRY_TOKEN }}
64
+ working-directory : ./rust/optify
53
65
54
66
# Ruby
55
67
# setup-ruby also runs `bundle install`.
Original file line number Diff line number Diff line change 95
95
if : github.ref == 'refs/heads/main'
96
96
shell : bash
97
97
# It probably just fails if the gem is already published.
98
- # We don't want to only be lenient for the `gem push`, but we would still want to clearly see that an issue happened during the run.
98
+ # We want to only be lenient for the `gem push`, but we would still want to clearly see that an issue happened during the run.
99
99
continue-on-error : true
100
100
run : |
101
101
set -ex
You can’t perform that action at this time.
0 commit comments