-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from biotinker/main
Add CI deployment
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
on: | ||
push: | ||
release: | ||
types: [released] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: build | ||
run: tar -czf module.tar.gz run.sh requirements.txt src | ||
- uses: viamrobotics/upload-module@main | ||
if: github.event_name == 'release' # <-- once the action is working, uncomment this so you only upload on release | ||
with: | ||
module-path: module.tar.gz | ||
platform: linux/amd64 | ||
version: ${{ github.event_name == 'release' && github.ref_name }} # <-- see 'Versioning' section below for explanation | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} | ||
- uses: viamrobotics/upload-module@main | ||
if: github.event_name == 'release' # <-- once the action is working, uncomment this so you only upload on release | ||
with: | ||
module-path: module.tar.gz | ||
platform: linux/arm64 | ||
version: ${{ github.event_name == 'release' && github.ref_name }} # <-- see 'Versioning' section below for explanation | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} | ||
- uses: viamrobotics/upload-module@main | ||
if: github.event_name == 'release' # <-- once the action is working, uncomment this so you only upload on release | ||
with: | ||
module-path: module.tar.gz | ||
platform: linux/arm | ||
version: ${{ github.event_name == 'release' && github.ref_name }} # <-- see 'Versioning' section below for explanation | ||
key-id: ${{ secrets.viam_key_id }} | ||
key-value: ${{ secrets.viam_key_value }} |