File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ release :
4+ types : [published]
5+
6+ env :
7+ VERSION : ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }}
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ platform : [arm64, amd64]
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : build
18+ run : make module.tar.gz
19+ - name : upload
20+ if : ${{ github.event_name == 'release' }}
21+ uses : viamrobotics/upload-module@main
22+ with :
23+ module-path : module.tar.gz
24+ platform : linux/${{ matrix.platform }}
25+ version : ${{ env.VERSION }}
26+ key-id : ${{ secrets.viam_key_id }}
27+ key-value : ${{ secrets.viam_key_value }}
Original file line number Diff line number Diff line change 1+ module.tar.gz : requirements.txt * .sh src/* .py
2+ tar czf module.tar.gz $^
You can’t perform that action at this time.
0 commit comments