Skip to content

Commit 1011b02

Browse files
committed
Add github action to generate zip file on release
1 parent a1d9aab commit 1011b02

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "Release"
2+
3+
on:
4+
release:
5+
types:
6+
- "published"
7+
8+
permissions: {}
9+
10+
jobs:
11+
release:
12+
name: "Release"
13+
runs-on: "ubuntu-latest"
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: "Checkout the repository"
18+
uses: "actions/[email protected]"
19+
20+
- name: "ZIP the integration directory"
21+
shell: "bash"
22+
run: |
23+
cd "${{ github.workspace }}/custom_components/smartthinq_sensors"
24+
zip smartthinq_sensors.zip -r ./
25+
26+
- name: "Upload the ZIP file to the release"
27+
uses: "softprops/[email protected]"
28+
with:
29+
files: ${{ github.workspace }}/custom_components/smartthinq_sensors/smartthinq_sensors.zip

0 commit comments

Comments
 (0)