@@ -5,6 +5,8 @@ on:
55 branches: ["master"]
66 pull_request:
77 branches: ["master"]
8+ release:
9+ types: [prereleased]
810
911jobs:
1012 build:
@@ -61,3 +63,28 @@ jobs:
6163 with:
6264 name: playwright-report
6365 path: tests/playwright-report/
66+
67+ # Upload release
68+
69+ - name: Zip Release Assets
70+ if: github.event_name == 'release'
71+ shell: bash
72+ run: |
73+ cd build/all/app/install/
74+ zip . ../../../../dist.zip
75+
76+ - name: Upload dist to release
77+ if: github.event_name == 'release'
78+ uses: svenstaro/upload-release-action@2.4.1
79+ with:
80+ repo_token: ${{ secrets.GITHUB_TOKEN }}
81+ file: dist.zip
82+ tag: ${{ github.ref }}
83+
84+ - name: Upload click to release
85+ if: github.event_name == 'release'
86+ uses: svenstaro/upload-release-action@2.4.1
87+ with:
88+ repo_token: ${{ secrets.GITHUB_TOKEN }}
89+ file: build/all/app/*.click
90+ tag: ${{ github.ref }}