From 524238b55998836451087457a72b096ae1f35856 Mon Sep 17 00:00:00 2001 From: daimond113 Date: Sat, 3 May 2025 21:05:38 +0200 Subject: [PATCH] ci: filter out artifacts --- .github/workflows/release.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 19c1a6a..e9bc3a1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,7 +24,7 @@ jobs: id: extract_version with: file: "./Cargo.toml" - field: "package.version" + field: "package.version" - name: Extract registry version uses: SebRollen/toml-action@v1.0.2 @@ -47,11 +47,11 @@ jobs: registry: ghcr.io repository: "${{ steps.repository_owner.outputs.lowercase }}/registry" tag: ${{ steps.extract_registry_version.outputs.value }} - + - name: Ensure not published id: ensure_not_published shell: bash - run: | + run: | CRATE_NAME="${{ env.CRATE_NAME }}" if [ ${#CRATE_NAME} -eq 1 ]; then DIR="1" @@ -96,7 +96,7 @@ jobs: target: aarch64-apple-darwin runs-on: ${{ matrix.os }} name: Build for ${{ matrix.host }}-${{ matrix.arch }} - needs: [ prepare ] + needs: [prepare] if: ${{ needs.prepare.outputs.found == 'false' }} steps: - uses: actions/checkout@v4 @@ -137,7 +137,7 @@ jobs: publish: name: Publish to crates.io runs-on: ubuntu-latest - needs: [ build ] + needs: [build] steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable @@ -150,7 +150,7 @@ jobs: permissions: contents: write pull-requests: read - needs: [ prepare, publish ] + needs: [prepare, publish] steps: - uses: actions/checkout@v4 with: @@ -159,6 +159,7 @@ jobs: with: path: artifacts merge-multiple: true + pattern: "*.zip" - name: Check if CLI version is pre-release id: is_prerelease @@ -183,7 +184,7 @@ jobs: build-registry-image: name: Build Docker image - needs: [ prepare ] + needs: [prepare] if: ${{ needs.prepare.outputs.registry_published == 'not found' }} permissions: contents: read @@ -193,7 +194,7 @@ jobs: include: - os: ubuntu-latest platform: linux/amd64 - + - os: ubuntu-24.04-arm platform: linux/arm64 runs-on: ${{ matrix.os }} @@ -224,7 +225,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Build and push Docker image id: build uses: docker/build-push-action@v6 @@ -247,11 +248,11 @@ jobs: path: ${{ runner.temp }}/digests/* if-no-files-found: error retention-days: 1 - + publish-registry-image: name: Publish Docker image runs-on: ubuntu-latest - needs: [ prepare, build-registry-image ] + needs: [prepare, build-registry-image] steps: - name: Download digests uses: actions/download-artifact@v4 @@ -294,4 +295,3 @@ jobs: - name: Inspect image run: | docker buildx imagetools inspect ${{ needs.prepare.outputs.registry_image }}:${{ needs.prepare.outputs.registry_version }} - \ No newline at end of file