File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change 47
47
48
48
- uses : subosito/flutter-action@v2
49
49
with :
50
- channel : ' master '
50
+ channel : ' stable '
51
51
cache : true
52
52
cache-key : ' flutter-:os:-:channel:-:version:-:arch:-:hash:' # optional, change this to force refresh cache
53
53
cache-path : ' ${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' # optional, change this to specify the cache path
@@ -160,4 +160,33 @@ jobs:
160
160
with :
161
161
name : ${{ matrix.target }}
162
162
path : ./build/macos/Build/Products/Release/result.zip
163
- if-no-files-found : error
163
+ if-no-files-found : error
164
+
165
+ release :
166
+ name : Create Release
167
+ needs : build
168
+ if : startsWith(github.ref, 'refs/tags/')
169
+ runs-on : ubuntu-latest
170
+ steps :
171
+ - name : Download all artifacts
172
+ uses : actions/download-artifact@v3
173
+ with :
174
+ path : artifacts
175
+
176
+ - name : List downloaded artifacts
177
+ run : ls -R artifacts
178
+
179
+ - name : Zip Linux artifacts
180
+ run : |
181
+ cd artifacts/linux-x64
182
+ zip -r ../linux-x64.zip .
183
+
184
+ - name : Create Release
185
+ uses : softprops/action-gh-release@v1
186
+ with :
187
+ files : |
188
+ artifacts/windows-x64/desktop_adb_file_browser.msix
189
+ artifacts/windows-x64/windows_installer.exe
190
+ artifacts/linux-x64.zip
191
+ artifacts/macos-x64/result.zip
192
+ fail_on_unmatched_files : false
You can’t perform that action at this time.
0 commit comments