Skip to content

Commit a55c4b9

Browse files
committed
ci: upload and download artifacts between jobs
1 parent 3a1eee1 commit a55c4b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,28 @@ jobs:
2424
- uses: dtolnay/rust-toolchain@nightly
2525
- run: cargo +nightly install cargo-packager --locked
2626
- run: cargo +nightly release
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v3
29+
with:
30+
name: discord-modloader-${{ matrix.platform }}
31+
path: dist/*
2732

2833
release:
2934
needs: package
3035
runs-on: ubuntu-latest
3136
permissions:
3237
contents: write
3338
steps:
39+
- name: Download artifacts
40+
uses: actions/download-artifact@v3
41+
with:
42+
path: dist/
43+
merge-multiple: true
3444
- name: Release
3545
uses: svenstaro/[email protected]
3646
with:
3747
repo_token: ${{ secrets.GITHUB_TOKEN }}
38-
file: dist/discord-modloader_*
48+
file: dist/{PKGBUILD,discord-modloader*}
3949
tag: ${{ github.ref }}
4050
overwrite: true
4151
file_glob: true

0 commit comments

Comments
 (0)