Skip to content

Commit 90c398d

Browse files
committed
Add GitHub Actions workflow for automated release zip creation and upload
1 parent 1fa03f7 commit 90c398d

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: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
name: Create release zip
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Create integration zip
16+
run: |
17+
cd unifi_network
18+
zip -r ../unifi_network.zip . -x "__pycache__/*" "*/__pycache__/*" "*.pyc"
19+
cd ..
20+
21+
- name: Upload release asset
22+
uses: actions/upload-release-asset@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
upload_url: ${{ github.event.release.upload_url }}
27+
asset_path: ./unifi_network.zip
28+
asset_name: unifi_network.zip
29+
asset_content_type: application/zip

0 commit comments

Comments
 (0)