diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10cdcb581..0c4b801a0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,11 @@ jobs: matrix: os: [macos-latest, ubuntu-latest, windows-latest] + permissions: + id-token: write + contents: write + attestations: write + steps: - name: Check out Git repository Fully uses: actions/checkout@v4 @@ -140,14 +145,29 @@ jobs: path: | out/make/**/*.dmg retention-days: 90 + + - name: Generate artifact attestation + if: github.ref_type == 'tag' || github.event.inputs.tag_version != '' + continue-on-error: true + uses: actions/attest-build-provenance@v1 + with: + subject-path: | + out/make/**/*.dmg + out/make/**/*.zip + out/make/**/*.exe + out/make/**/*.AppImage + out/make/**/*.yml + - run: npx changelogithub if: github.ref_type == 'tag' || github.event.inputs.tag_version != '' continue-on-error: true env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Version id: version uses: ./.github/actions/setup-version + - name: Create Release Draft if: github.ref_type == 'tag' || github.event.inputs.tag_version != '' uses: softprops/action-gh-release@v2