Skip to content

.github/workflows/build.yml #14

.github/workflows/build.yml

.github/workflows/build.yml #14

Workflow file for this run

on:
workflow_dispatch:
inputs:
version:
type: string
# push:
release:
types: [released]
env:
# version blank in non-release case -- that means build but don't upload
VERSION: ${{ inputs.version || (github.event_name == 'release' && github.ref_name || '') }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: viamrobotics/build-action@v1
with:
version: ${{ env.VERSION }}
ref: ${{ github.sha }}
key-id: ${{ secrets.viam_key_id }}
key-value: ${{ secrets.viam_key_value }}