-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgithub_action.yaml
23 lines (21 loc) · 1.1 KB
/
github_action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
on:
push:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: echo "your build command goes here" && false # <-- replace this with the command that builds your module's tar.gz
- uses: viamrobotics/upload-module@v1
# if: github.event_name == 'release' # <-- once the action is working, uncomment this so you only upload on release
with:
module-path: module.tar.gz
org-id: your-org-id-uuid # <-- replace with your org ID. not required for public modules
platform: linux/amd64 # <-- replace with your target architecture, or your module will not deploy
version: ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }} # <-- see 'Versioning' section below for explanation
key-id: ${{ secrets.viam_key_id }}
key-value: ${{ secrets.viam_key_value }}
# For more details visit our docs pages https://docs.viam.com/registry/upload/#update-an-existing-module-using-a-github-action