Skip to content

Commit 25b435f

Browse files
committed
Upload one artifact per distributable, not per platform
This is much more convenient for manually testing from actions. Requires a manual unrolling and changes for any new targets but no big deal I think, all very clear & declarative.
1 parent 8d242f4 commit 25b435f

1 file changed

Lines changed: 45 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,52 @@ jobs:
9797
shell: bash
9898

9999
- uses: actions/upload-artifact@v4
100+
if: matrix.platform == 'linux'
100101
with:
101-
name: ${{ matrix.platform }}-${{ matrix.arch }}-distributables
102-
path: dist/HttpToolkit-*
102+
name: HttpToolkit-linux-${{ matrix.arch }}-deb
103+
path: dist/HttpToolkit-*.deb
104+
if-no-files-found: error
105+
106+
- uses: actions/upload-artifact@v4
107+
if: matrix.platform == 'linux'
108+
with:
109+
name: HttpToolkit-linux-${{ matrix.arch }}-rpm
110+
path: dist/HttpToolkit-*.rpm
111+
if-no-files-found: error
112+
113+
- uses: actions/upload-artifact@v4
114+
if: matrix.platform == 'linux'
115+
with:
116+
name: HttpToolkit-linux-${{ matrix.arch }}-AppImage
117+
path: dist/HttpToolkit-*.AppImage
118+
if-no-files-found: error
119+
120+
- uses: actions/upload-artifact@v4
121+
if: matrix.platform == 'linux'
122+
with:
123+
name: HttpToolkit-linux-${{ matrix.arch }}-zip
124+
path: dist/HttpToolkit-*linux*.zip
125+
if-no-files-found: error
126+
127+
- uses: actions/upload-artifact@v4
128+
if: matrix.platform == 'windows'
129+
with:
130+
name: HttpToolkit-windows-${{ matrix.arch }}-exe
131+
path: dist/HttpToolkit-*.exe
132+
if-no-files-found: error
133+
134+
- uses: actions/upload-artifact@v4
135+
if: matrix.platform == 'windows'
136+
with:
137+
name: HttpToolkit-windows-${{ matrix.arch }}-zip
138+
path: dist/HttpToolkit-*windows*.zip
139+
if-no-files-found: error
140+
141+
- uses: actions/upload-artifact@v4
142+
if: matrix.platform == 'mac'
143+
with:
144+
name: HttpToolkit-mac-${{ matrix.arch }}-dmg
145+
path: dist/HttpToolkit-*.dmg
103146
if-no-files-found: error
104147
publish:
105148
name: Publish a release

0 commit comments

Comments
 (0)