add sha to cloud-build #3
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
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: string | |
push: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: viamrobotics/build-action@main | |
with: | |
# note: version will be blank on 'push' event. | |
# This is intentional because this repo still has the legacy upload-module action. | |
version: ${{ inputs.version }} | |
ref: ${{ github.sha }} | |
key-id: ${{ secrets.viam_key_id }} | |
key-value: ${{ secrets.viam_key_value }} |