Skip to content

Commit

Permalink
workflows: Use artifact-attestations for binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Oct 2, 2024
1 parent a3fe0d8 commit 5e5bcff
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
type: choice
options: ["1", "2", "3", "4", "5", "6", "7", "8", "9"]

permissions:
id-token: write
contents: read
attestations: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down Expand Up @@ -147,6 +152,12 @@ jobs:
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
run: docker exec -w /root/${{ env.qbt_build_dir }}/completed multiarch mv -f qbittorrent-nox ${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox

- name: Generate artifact attestation ${{ github.event.inputs.distinct_id }}
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
uses: actions/attest-build-provenance@v1
with:
subject-path: "${{ env.qbt_build_dir }}/completed/${{ matrix.qbt_cross_name }}-${{ matrix.qbt_qt_version_name }}qbittorrent-nox"

- name: Docker - Release Info ${{ github.event.inputs.distinct_id }}
if: env.disable_qt5 != 'yes' # When qBittorrent v5 is released, remove this
run: docker exec -w /root/${{ env.qbt_build_dir }}/release_info multiarch bash -c 'mv *.md *.json '/root/${{ env.qbt_build_dir }}/completed''
Expand Down

0 comments on commit 5e5bcff

Please sign in to comment.