v0.0.1b3 #7
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
name: Release | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
env: | |
COMPONENT_DIR: landroid_cloud | |
jobs: | |
release_zip_file: | |
name: Prepare release asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Update manifest.json version to ${{ github.event.release.tag_name }} | |
run: | | |
python3 ${{ github.workspace }}/.github/scripts/update_hacs_manifest.py --version ${{ github.event.release.tag_name }} --path /custom_components/webastoconnect/ | |
- name: Commit manifest update | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add ./custom_components/webastoconnect/manifest.json | |
git commit -m "Updated manifest.json" | |
git push origin HEAD:main | |
- name: Create zip | |
run: | | |
cd custom_components/webastoconnect | |
zip webastoconnect.zip -r ./ | |
- name: Upload zip to release | |
uses: svenstaro/[email protected] | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./custom_components/webastoconnect/webastoconnect.zip | |
asset_name: webastoconnect.zip | |
tag: ${{ github.ref }} | |
overwrite: true |