Skip to content

v0.1.0

v0.1.0 #1

Workflow file for this run

name: Release
on:
release:
types: [published]
permissions:
contents: write
jobs:
release:
name: Build and upload release asset
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify manifest version matches tag
run: |
TAG="${GITHUB_REF_NAME#v}"
MANIFEST_VERSION=$(jq -r .version custom_components/closest_intent/manifest.json)
if [ "$TAG" != "$MANIFEST_VERSION" ]; then
echo "Tag ($TAG) does not match manifest.json version ($MANIFEST_VERSION)." >&2
echo "Bump custom_components/closest_intent/manifest.json before tagging." >&2
exit 1
fi
- name: Zip integration
working-directory: custom_components/closest_intent
run: zip -r closest_intent.zip ./*
- name: Upload release asset
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload "${GITHUB_REF_NAME}" \
custom_components/closest_intent/closest_intent.zip \
--clobber