Skip to content

Commit b33b7ec

Browse files
authored
Create release.yml
1 parent 8082576 commit b33b7ec

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release_zip_file:
9+
name: Prepare release asset
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: ZIP files
15+
run: |
16+
cd /home/runner/work/argon40/argon40/custom_components/argon40
17+
zip argon40.zip -r ./
18+
19+
- name: Upload zip to release
20+
uses: svenstaro/upload-release-action@v1-release
21+
with:
22+
repo_token: ${{ secrets.GITHUB_TOKEN }}
23+
file: /home/runner/work/argon40/argon40/custom_components/argon40/argon40.zip
24+
asset_name: argon40.zip
25+
tag: ${{ github.ref }}
26+
overwrite: true

0 commit comments

Comments
 (0)