Skip to content
This repository has been archived by the owner on Dec 19, 2020. It is now read-only.

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewFlamm authored Aug 25, 2020
1 parent 19b1710 commit 532cad1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types: [published]

jobs:
release_zip_file:
name: Prepare release asset
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v1

# Pack the HACS dir as a zip and upload to the release
- name: ZIP HACS Dir
run: |
cd /home/runner/work/nwsradar/custom_components/nwsradar
zip nwsradar.zip -r ./
- name: Upload zip to release
uses: svenstaro/upload-release-action@v1-release

with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /home/runner/work/nwsradar/custom_components/nwsradar/nwsradar.zip
asset_name: nwsradar.zip
tag: ${{ github.ref }}
overwrite: true

0 comments on commit 532cad1

Please sign in to comment.