Skip to content

Commit cd2fc0e

Browse files
authored
Upload artifacts in CI
1 parent a027d41 commit cd2fc0e

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,31 @@ jobs:
1616
with:
1717
java-version: '1.8'
1818
java-package: jdk+fx
19-
- name: Create macOS app
20-
if: matrix.os == 'macOS-latest'
19+
- name: Fix macOS AppleScript permissions
20+
run: sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "insert into access (service, client, client_type, allowed, prompt_count, indirect_object_identifier_type, indirect_object_identifier) values ('kTCCServiceAppleEvents', '`which java`', 1, 1, 1, 0, 'com.apple.finder')"
21+
if: runner.os == 'macOS'
22+
- name: Create macOS dmg
23+
if: runner.os == 'macOS'
2124
uses: eskatos/gradle-command-action@v1
2225
with:
23-
arguments: createMacApp
26+
arguments: createDmg
2427
wrapper-cache-enabled: true
2528
dependencies-cache-enabled: true
2629
- name: Create Linux tar.gz
27-
if: matrix.os == 'ubuntu-latest'
30+
if: runner.os == 'Linux'
2831
uses: eskatos/gradle-command-action@v1
2932
with:
3033
arguments: createLinuxTargz
3134
wrapper-cache-enabled: true
3235
dependencies-cache-enabled: true
3336
- name: Create Windows exe
34-
if: matrix.os == 'windows-latest'
37+
if: runner.os == 'Windows'
3538
uses: eskatos/gradle-command-action@v1
3639
with:
3740
arguments: createWindowsInstaller
3841
wrapper-cache-enabled: true
3942
dependencies-cache-enabled: true
43+
- uses: actions/upload-artifact@v2
44+
with:
45+
name: ${{ runner.os }}
46+
path: build/distributions/*

0 commit comments

Comments
 (0)