Skip to content

Commit 16d37a5

Browse files
committed
Split the mas-cli archives & fix job dependencies
1 parent 5709e27 commit 16d37a5

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,17 @@ jobs:
202202
tar -czvf mas-cli-${arch}-linux.tar.gz --owner=0 --group=0 -C dist/${arch}/ .
203203
done
204204
205-
- name: Upload the artifacts
205+
- name: Upload aarch64 archive
206206
uses: actions/[email protected]
207207
with:
208-
name: binaries
209-
path: |
210-
mas-cli-aarch64-linux.tar.gz
211-
mas-cli-x86_64-linux.tar.gz
208+
name: mas-cli-aarch64-linux
209+
path: mas-cli-aarch64-linux.tar.gz
210+
211+
- name: Upload x86_64 archive
212+
uses: actions/[email protected]
213+
with:
214+
name: mas-cli-x86_64-linux
215+
path: mas-cli-x86_64-linux.tar.gz
212216

213217
build-image:
214218
name: Build and push Docker image
@@ -384,15 +388,16 @@ jobs:
384388
if: startsWith(github.ref, 'refs/tags/')
385389
runs-on: ubuntu-latest
386390
needs:
387-
- build-binaries
391+
- assemble-archives
388392
- build-image
389393
- syn2mas
390394
steps:
391395
- name: Download the artifacts from the previous job
392396
uses: actions/download-artifact@v4
393397
with:
394-
name: binaries
398+
pattern: mas-cli-*
395399
path: artifacts
400+
merge-multiple: true
396401

397402
- name: Prepare a release
398403
uses: softprops/action-gh-release@v2
@@ -446,19 +451,19 @@ jobs:
446451
name: Update the unstable release
447452
runs-on: ubuntu-24.04
448453
needs:
449-
- build-binaries
454+
- assemble-archives
450455
- build-image
451456
if: github.ref == 'refs/heads/main'
452457

453458
permissions:
454459
contents: write
455-
456460
steps:
457461
- name: Download the artifacts from the previous job
458462
uses: actions/download-artifact@v4
459463
with:
460-
name: binaries
464+
pattern: mas-cli-*
461465
path: artifacts
466+
merge-multiple: true
462467

463468
- name: Update unstable git tag
464469
uses: actions/[email protected]

0 commit comments

Comments
 (0)