Skip to content

Commit

Permalink
upload on release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob1in authored Dec 8, 2023
1 parent eaa7017 commit f392a7b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/arm64, linux/amd64, darwin/arm64, darwin/amd64]
steps:
- uses: actions/checkout@v3
- name: build
run: make module.tar.gz
- name: upload
if: ${{ github.event_name == 'release' }}
uses: viamrobotics/upload-module@v1
with:
module-path: module.tar.gz
platform: ${{ matrix.platform }}
version: ${{ github.event_name == 'release' && github.ref_name || format('0.0.0-{0}.{1}', github.ref_name, github.run_number) }}
key-id: ${{ secrets.viam_key_id }}
key-value: ${{ secrets.viam_key_value }}

0 comments on commit f392a7b

Please sign in to comment.