Skip to content

Commit 570ce53

Browse files
committed
fix: upload os-specific artifacts
1 parent 1ccb417 commit 570ce53

File tree

1 file changed

+8
-45
lines changed

1 file changed

+8
-45
lines changed

.github/workflows/build.yml

+8-45
Original file line numberDiff line numberDiff line change
@@ -45,62 +45,25 @@ jobs:
4545
- name: Install dependencies
4646
run: yarn install
4747

48-
# ============================================================
49-
# LINUX
50-
# ============================================================
51-
5248
- name: Build Linux
5349
if: matrix.os == 'ubuntu-latest'
5450
run: yarn build:linux
5551

56-
- name: Upload artifacts (linux-amd64-snap)
57-
if: matrix.os == 'ubuntu-latest'
58-
uses: actions/upload-artifact@v3
59-
with:
60-
path: dist/phoenix-*-linux-amd64.snap
61-
62-
# ============================================================
63-
# MACOS
64-
# ============================================================
65-
6652
- name: Build MacOS
6753
if: matrix.os == 'macos-latest'
6854
run: yarn build:mac
6955

70-
- name: Upload artifacts (mac-arm64-dmg)
71-
if: matrix.os == 'macos-latest'
72-
uses: actions/upload-artifact@v3
73-
with:
74-
path: dist/phoenix-*-mac-arm64.dmg
75-
76-
- name: Upload artifacts (mac-arm64-zip)
77-
if: matrix.os == 'macos-latest'
78-
uses: actions/upload-artifact@v3
79-
with:
80-
path: dist/phoenix-*-mac-arm64.zip
81-
82-
- name: Upload artifacts (mac-x64-dmg)
83-
if: matrix.os == 'macos-latest'
84-
uses: actions/upload-artifact@v3
85-
with:
86-
path: dist/phoenix-*-mac-x64.dmg
87-
88-
- name: Upload artifacts (mac-x64-zip)
89-
if: matrix.os == 'macos-latest'
90-
uses: actions/upload-artifact@v3
91-
with:
92-
path: dist/phoenix-*-mac-x64.zip
93-
94-
# ============================================================
95-
# WINDOWS
96-
# ============================================================
97-
9856
- name: Build Windows
9957
if: matrix.os == 'windows-latest'
10058
run: yarn build:win
10159

102-
- name: Upload artifacts (win-x64-exe)
103-
if: matrix.os == 'windows-latest'
60+
- name: Upload artifacts
10461
uses: actions/upload-artifact@v3
10562
with:
106-
path: dist/phoenix-*-win-x64.exe
63+
name: phoenix-app-{{ matrix.os }}
64+
path: |
65+
dist/phoenix-*.snap
66+
dist/phoenix-*.exe
67+
dist/phoenix-*.dmg
68+
dist/phoenix-*.zip
69+
retention-days: 5

0 commit comments

Comments
 (0)