mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
Add build attestations for releases (#5967)
This commit is contained in:
parent
783e3a5b16
commit
895fb36659
1 changed files with 48 additions and 0 deletions
48
.github/workflows/desktop-build.yml
vendored
48
.github/workflows/desktop-build.yml
vendored
|
|
@ -181,6 +181,7 @@ jobs:
|
||||||
key: ${{ steps.ccache_restore.outputs.cache-primary-key }}
|
key: ${{ steps.ccache_restore.outputs.cache-primary-key }}
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
id: upload_artifact
|
||||||
if: matrix.package != 'skip'
|
if: matrix.package != 'skip'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -189,6 +190,7 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
|
id: upload_release
|
||||||
if: matrix.package != 'skip' && needs.configure.outputs.tag != null
|
if: matrix.package != 'skip' && needs.configure.outputs.tag != null
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|
@ -198,6 +200,20 @@ jobs:
|
||||||
asset_name: ${{steps.build.outputs.name}}
|
asset_name: ${{steps.build.outputs.name}}
|
||||||
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
||||||
|
|
||||||
|
- name: Attest binary provenance
|
||||||
|
id: attestation
|
||||||
|
if: steps.upload_release.outcome == 'success'
|
||||||
|
uses: actions/attest-build-provenance@v2
|
||||||
|
with:
|
||||||
|
subject-path: ${{steps.build.outputs.path}}
|
||||||
|
subject-name: ${{steps.build.outputs.name}}
|
||||||
|
subject-digest: sha256:${{ steps.upload_artifact.outputs.artifact-digest }}
|
||||||
|
|
||||||
|
- name: Verify binary attestation
|
||||||
|
if: steps.attestation.outcome == 'success'
|
||||||
|
shell: bash
|
||||||
|
run: gh attestation verify ${{steps.build.outputs.path}} -R Cockatrice/Cockatrice
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -342,6 +358,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
id: upload_artifact
|
||||||
if: matrix.make_package
|
if: matrix.make_package
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
@ -350,6 +367,7 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
|
id: upload_release
|
||||||
if: matrix.make_package && needs.configure.outputs.tag != null
|
if: matrix.make_package && needs.configure.outputs.tag != null
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|
@ -359,6 +377,20 @@ jobs:
|
||||||
asset_name: ${{steps.build.outputs.name}}
|
asset_name: ${{steps.build.outputs.name}}
|
||||||
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
||||||
|
|
||||||
|
- name: Attest binary provenance
|
||||||
|
id: attestation
|
||||||
|
if: steps.upload_release.outcome == 'success'
|
||||||
|
uses: actions/attest-build-provenance@v2
|
||||||
|
with:
|
||||||
|
subject-path: ${{steps.build.outputs.path}}
|
||||||
|
subject-name: ${{steps.build.outputs.name}}
|
||||||
|
subject-digest: sha256:${{ steps.upload_artifact.outputs.artifact-digest }}
|
||||||
|
|
||||||
|
- name: Verify binary attestation
|
||||||
|
if: steps.attestation.outcome == 'success'
|
||||||
|
shell: bash
|
||||||
|
run: gh attestation verify ${{steps.build.outputs.path}} -R Cockatrice/Cockatrice
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
@ -422,6 +454,7 @@ jobs:
|
||||||
run: .ci/compile.sh --server --release --test --package
|
run: .ci/compile.sh --server --release --test --package
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
id: upload_artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Windows${{matrix.target}}-installer
|
name: Windows${{matrix.target}}-installer
|
||||||
|
|
@ -438,6 +471,7 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Upload to release
|
- name: Upload to release
|
||||||
|
id: upload_release
|
||||||
if: needs.configure.outputs.tag != null
|
if: needs.configure.outputs.tag != null
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
|
@ -446,3 +480,17 @@ jobs:
|
||||||
asset_path: ${{steps.build.outputs.path}}
|
asset_path: ${{steps.build.outputs.path}}
|
||||||
asset_name: ${{steps.build.outputs.name}}
|
asset_name: ${{steps.build.outputs.name}}
|
||||||
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
run: gh release upload "$tag_name" "$asset_path#$asset_name"
|
||||||
|
|
||||||
|
- name: Attest binary provenance
|
||||||
|
id: attestation
|
||||||
|
if: steps.upload_release.outcome == 'success'
|
||||||
|
uses: actions/attest-build-provenance@v2
|
||||||
|
with:
|
||||||
|
subject-path: ${{steps.build.outputs.path}}
|
||||||
|
subject-name: ${{steps.build.outputs.name}}
|
||||||
|
subject-digest: sha256:${{ steps.upload_artifact.outputs.artifact-digest }}
|
||||||
|
|
||||||
|
- name: Verify binary attestation
|
||||||
|
if: steps.attestation.outcome == 'success'
|
||||||
|
shell: bash
|
||||||
|
run: gh attestation verify ${{steps.build.outputs.path}} -R Cockatrice/Cockatrice
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue