From f392a7bcfa60878ef480ea2c65046d1f358d017e Mon Sep 17 00:00:00 2001 From: Rob1in <73953872+Rob1in@users.noreply.github.com> Date: Fri, 8 Dec 2023 15:55:37 -0500 Subject: [PATCH] upload on release workflow --- .github/workflows/main.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..3666f89 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 }}