Skip to content

100.0.0b2

100.0.0b2 #7

Workflow file for this run

name: Release workflow
on:
release:
types:
- published
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/[email protected]
- name: Get release version
id: version
uses: home-assistant/actions/helpers/version@master
- name: Validate data
run: |
manifestversion=$(jq -r '.version' ${{ github.workspace }}/custom_components/healthchecksio/manifest.json)
if [ "$manifestversion" != "${{ steps.version.outputs.version }}" ]; then
echo "The version in custom_components/healthchecksio/manifest.json was not correct"
echo "$manifestversion"
exit 1
fi
- name: Create zip file for the integration
run: |
cd "${{ github.workspace }}/custom_components/healthchecksio"
zip healthchecksio.zip -r ./
- name: Upload the zipfile as a release asset
uses: softprops/[email protected]
with:
files: ${{ github.workspace }}/custom_components/healthchecksio/healthchecksio.zip