Skip to content

Release v0.2.0

Release v0.2.0 #8

Workflow file for this run

name: Release
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Verify that tag matches image version in action.yaml
run: |
#!/bin/bash
set -e
tag=${GITHUB_REF#refs/tags/}
image=$(yq '.runs.image' action.yaml)
image_without_digest=${image%@*}
version=${image_without_digest##*:}
if [[ "$tag" != "$version" ]]; then
echo "Tag does not match action.yaml image version: $tag X $image" >&2
exit 1
fi
- name: Release
uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0 # v2