Support a maximum box size #12
Workflow file for this run
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
# see https://github.com/viamrobotics/build-action for help | |
on: | |
release: | |
types: [published] | |
jobs: | |
validate-tag: # Make sure we're publishing a tag that looks like semantic versioning | |
runs-on: ubuntu-latest | |
steps: | |
- name: Validate tag format | |
run: | | |
TAG="${{ github.event.release.tag_name }}" | |
echo "Validating tag: '$TAG'" | |
if [[ $TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]*)?$ ]]; then | |
echo "Tag matches semver." | |
else | |
echo "Error: tag does not match semver." | |
exit 1 | |
fi | |
publish: | |
runs-on: ubuntu-latest | |
needs: [validate-tag] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: viamrobotics/build-action@v1 | |
with: | |
version: ${{ github.event.release.tag_name }} | |
ref: ${{ github.sha }} | |
key-id: ${{ secrets.viam_key_id }} | |
key-value: ${{ secrets.viam_key_value }} |