Split the mas-cli archives & fix job dependencies

This commit is contained in:
Quentin Gliech
2025-02-05 17:30:36 +01:00
parent 0bd55c0bc4
commit d77e99939f

View File

@@ -202,13 +202,17 @@ jobs:
tar -czvf mas-cli-${arch}-linux.tar.gz --owner=0 --group=0 -C dist/${arch}/ .
done
- name: Upload the artifacts
- name: Upload aarch64 archive
uses: actions/upload-artifact@v4.6.0
with:
name: binaries
path: |
mas-cli-aarch64-linux.tar.gz
mas-cli-x86_64-linux.tar.gz
name: mas-cli-aarch64-linux
path: mas-cli-aarch64-linux.tar.gz
- name: Upload x86_64 archive
uses: actions/upload-artifact@v4.6.0
with:
name: mas-cli-x86_64-linux
path: mas-cli-x86_64-linux.tar.gz
build-image:
name: Build and push Docker image
@@ -384,15 +388,16 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs:
- build-binaries
- assemble-archives
- build-image
- syn2mas
steps:
- name: Download the artifacts from the previous job
uses: actions/download-artifact@v4
with:
name: binaries
pattern: mas-cli-*
path: artifacts
merge-multiple: true
- name: Prepare a release
uses: softprops/action-gh-release@v2
@@ -446,19 +451,19 @@ jobs:
name: Update the unstable release
runs-on: ubuntu-24.04
needs:
- build-binaries
- assemble-archives
- build-image
if: github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Download the artifacts from the previous job
uses: actions/download-artifact@v4
with:
name: binaries
pattern: mas-cli-*
path: artifacts
merge-multiple: true
- name: Update unstable git tag
uses: actions/github-script@v7.0.1