Skip to content

v0.4.5

v0.4.5 #24

Workflow file for this run

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