v0.4.5 #24
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: | |
release: | |
types: [published] | |
jobs: | |
release_zip_file: | |
name: Publish HACS zip file asset | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
# Pack the smartrent dir as a zip and upload to the release | |
- name: ZIP smartrent Dir | |
if: ${{ github.event_name == 'release' }} | |
run: | | |
cd ${{ github.workspace }}/custom_components/smartrent | |
zip smartrent.zip -r ./ | |
- name: Upload zip to release | |
uses: svenstaro/upload-release-action@v1-release | |
if: ${{ github.event_name == 'release' }} | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ github.workspace }}/custom_components/smartrent/smartrent.zip | |
asset_name: smartrent.zip | |
tag: ${{ github.ref }} | |
overwrite: true |