Skip to content

0.5.0

0.5.0 #24

Workflow file for this run

name: Release
on:
release:
types:
- published
permissions:
contents: write
jobs:
hacs:
name: HACS Action
runs-on: "ubuntu-latest"
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
- name: Get tag from commit summary
run: |
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Set version to release tag
run: |
sed -i "s/GITHUB_RELEASE_VERSION/${{ env.tag }}/g" custom_components/ankermake/manifest.json
sed -i "s/GITHUB_RELEASE_VERSION/${{ env.tag }}/g" custom_components/ankermake/const.py
- name: Zip ankermake
run: |
cd custom_components/ankermake
zip -r ankermake.zip .
- name: Upload release asset to the existing release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: custom_components/ankermake/ankermake.zip
asset_name: ankermake.zip
asset_content_type: application/zip
overwrite: true