mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-11 00:47:38 +00:00
fix(ci): attest releases and validate offline examples
This commit is contained in:
@@ -131,6 +131,8 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
attestations: write
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -143,6 +145,14 @@ jobs:
|
||||
- name: Recheck artifact checksums
|
||||
run: (cd dist && sha256sum -c SHA256SUMS)
|
||||
|
||||
- name: Attest tagged release artifacts
|
||||
uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
|
||||
with:
|
||||
subject-path: |
|
||||
dist/docker_practice-*.pdf
|
||||
dist/docker_practice-*.html
|
||||
dist/SHA256SUMS
|
||||
|
||||
- name: Create GitHub release
|
||||
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user