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
|
target: aarch64-apple-darwin
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: Build for ${{ matrix.host }}-${{ matrix.arch }}
|
name: Build for ${{ matrix.host }}-${{ matrix.arch }}
|
||||||
needs: [ prepare ]
|
needs: [prepare]
|
||||||
if: ${{ needs.prepare.outputs.found == 'false' }}
|
if: ${{ needs.prepare.outputs.found == 'false' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -137,7 +137,7 @@ jobs:
|
||||||
publish:
|
publish:
|
||||||
name: Publish to crates.io
|
name: Publish to crates.io
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ build ]
|
needs: [build]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
@ -150,7 +150,7 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
pull-requests: read
|
pull-requests: read
|
||||||
needs: [ prepare, publish ]
|
needs: [prepare, publish]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
|
@ -159,6 +159,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
pattern: "*.zip"
|
||||||
|
|
||||||
- name: Check if CLI version is pre-release
|
- name: Check if CLI version is pre-release
|
||||||
id: is_prerelease
|
id: is_prerelease
|
||||||
|
@ -183,7 +184,7 @@ jobs:
|
||||||
|
|
||||||
build-registry-image:
|
build-registry-image:
|
||||||
name: Build Docker image
|
name: Build Docker image
|
||||||
needs: [ prepare ]
|
needs: [prepare]
|
||||||
if: ${{ needs.prepare.outputs.registry_published == 'not found' }}
|
if: ${{ needs.prepare.outputs.registry_published == 'not found' }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
@ -251,7 +252,7 @@ jobs:
|
||||||
publish-registry-image:
|
publish-registry-image:
|
||||||
name: Publish Docker image
|
name: Publish Docker image
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [ prepare, build-registry-image ]
|
needs: [prepare, build-registry-image]
|
||||||
steps:
|
steps:
|
||||||
- name: Download digests
|
- name: Download digests
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
|
@ -294,4 +295,3 @@ jobs:
|
||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ needs.prepare.outputs.registry_image }}:${{ needs.prepare.outputs.registry_version }}
|
docker buildx imagetools inspect ${{ needs.prepare.outputs.registry_image }}:${{ needs.prepare.outputs.registry_version }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue