Skip to content

Commit

Permalink
Merge pull request #2 from biotinker/main
Browse files Browse the repository at this point in the history
Add CI deployment
  • Loading branch information
biotinker authored Oct 4, 2023
2 parents 89fca4a + 46e5426 commit 972464f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
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 }}

0 comments on commit 972464f

Please sign in to comment.