File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed
Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags : [v*]
6+
7+ permissions :
8+ contents : write
9+
10+ jobs :
11+ publish :
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+ with :
17+ ref : main
18+ fetch-depth : 0
19+
20+ - run : |
21+ BRANCHS=$(git branch --contains ${{ github.ref_name }})
22+ set -- $BRANCHS
23+ for BRANCH in $BRANCHS ; do
24+ if [[ "$BRANCH" == "main" ]]; then
25+ exit 0
26+ fi
27+ done
28+ exit 1
29+
30+ - name : Create release
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ run : |
34+ gh release create ${{ github.ref_name }} --generate-notes
35+
36+ - name : Publish packages
37+ env :
38+ CARGO_REGISTRY_TOKEN : ${{ secrets.CRATES_IO_TOKEN }}
39+ run : |
40+ cargo publish -p rusty_mujoco
Original file line number Diff line number Diff line change 1+ # ` rusty_mujoco ` Examples
2+
13## ` visualize_left_object.rs `
24
35This example leaves a single object in the scene and visualizes it.
You can’t perform that action at this time.
0 commit comments