File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches : [ main ]
66 pull_request :
7- branches : [ main ]
87
98jobs :
109 format_and_lint_programs :
Original file line number Diff line number Diff line change 1+ name : Release Rust Crates
2+
3+ # Will run if 'Main' workflow was successful on main branch
4+ on :
5+ workflow_run :
6+ workflows : [ "Main" ]
7+ types : [ completed ]
8+ branches : [ main ]
9+
10+ jobs :
11+ publish_rust :
12+ name : Publish Rust Crates
13+ runs-on : ubuntu-latest
14+ if : github.event.workflow_run.conclusion == 'success'
15+ steps :
16+ - name : Git Checkout
17+ uses : actions/checkout@v4
18+ with :
19+ ref : ${{ github.event.workflow_run.head_sha }}
20+
21+ - name : Setup Environment
22+ uses : ./.github/actions/setup
23+
24+ - name : Publish All Crates in Workspace
25+ uses : katyo/publish-crates@v2
26+ with :
27+ path : .
28+ registry-token : ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+ ignore-unpublished-changes : true
You can’t perform that action at this time.
0 commit comments