Skip to content

Commit 85ff363

Browse files
committed
refactor(release): upload and download release artifacts
1 parent 5ba403a commit 85ff363

1 file changed

Lines changed: 18 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
permissions:
88
contents: write
9-
9+
1010
jobs:
1111
build:
1212
strategy:
@@ -29,21 +29,33 @@ jobs:
2929
outfile: term-invader-macos-silicon
3030

3131
runs-on: ${{ matrix.os }}
32-
3332
steps:
3433
- uses: actions/checkout@v4
3534
- uses: oven-sh/setup-bun@v2
36-
3735
- name: Install dependencies
3836
run: bun install
39-
4037
- name: Build Binary
4138
run: bun build ./game.js --compile --target=${{ matrix.target }} --outfile=${{ matrix.outfile }}
39+
- name: Upload Artifact
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: ${{ matrix.outfile }}
43+
path: ${{ matrix.outfile }}
44+
45+
release:
46+
needs: build
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Download all artifacts
50+
uses: actions/download-artifact@v4
51+
with:
52+
path: ./artifacts
53+
merge-multiple: true
4254

43-
- name: Release
55+
- name: Create Release
4456
uses: softprops/action-gh-release@v2
4557
with:
46-
files: ${{ matrix.outfile }}
58+
files: ./artifacts/*
4759
body: |
4860
## TERM-INVADER v${{ github.ref_name }}
4961

0 commit comments

Comments
 (0)