mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
ci: filter out artifacts
This commit is contained in:
parent
ce98553a5b
commit
524238b559
1 changed files with 12 additions and 12 deletions
12
.github/workflows/release.yaml
vendored
12
.github/workflows/release.yaml
vendored
|
@ -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
|
||||
|
@ -251,7 +252,7 @@ jobs:
|
|||
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 }}
|
||||
|
Loading…
Add table
Reference in a new issue