From 786796d457cc2085522fa4e60fcc9a03a9037b11 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sat, 27 Sep 2025 08:14:36 +0800 Subject: [PATCH] update uploading artifact job --- .github/workflows/build-release.yml | 19 ++++++------------- .github/workflows/build-snapshot.yml | 19 ++++++------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 60d7ee17..452c15dd 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -6,7 +6,7 @@ on: - v* jobs: - build-and-push: + build-linux-docker: runs-on: ubuntu-latest outputs: image-tag: ${{ steps.meta.outputs.version }} @@ -58,8 +58,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - upload-artifact: - needs: build-and-push + upload-linux-artifact: + needs: build-linux-docker runs-on: ubuntu-latest strategy: matrix: @@ -76,14 +76,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - image: tonistiigi/binfmt:qemu-v8.1.5 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub uses: docker/login-action@v3 with: @@ -106,5 +98,6 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: ezbookkeeping-release-package - path: ezbookkeeping-v*.tar.gz + name: ezbookkeeping-v${{ needs.build-and-push.outputs.image-tag }}-${{ matrix.arch_alias }} + path: ezbookkeeping-v${{ needs.build-and-push.outputs.image-tag }}-${{ matrix.arch_alias }}.tar.gz + if-no-files-found: error diff --git a/.github/workflows/build-snapshot.yml b/.github/workflows/build-snapshot.yml index d892bea2..df3b8a0f 100644 --- a/.github/workflows/build-snapshot.yml +++ b/.github/workflows/build-snapshot.yml @@ -6,7 +6,7 @@ on: - main jobs: - build-and-push: + build-linux-docker: runs-on: ubuntu-latest outputs: image-tag: ${{ steps.meta.outputs.version }} @@ -57,8 +57,8 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - upload-artifact: - needs: build-and-push + upload-linux-artifact: + needs: build-linux-docker runs-on: ubuntu-latest strategy: matrix: @@ -75,14 +75,6 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - with: - image: tonistiigi/binfmt:qemu-v8.1.5 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub uses: docker/login-action@v3 with: @@ -105,5 +97,6 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v4 with: - name: ezbookkeeping-dev-package - path: ezbookkeeping-dev-*.tar.gz + name: ezbookkeeping-dev-${{ github.run_id }}-${{ matrix.arch_alias }} + path: ezbookkeeping-dev-${{ github.run_id }}-${{ matrix.arch_alias }}.tar.gz + if-no-files-found: error