mirror of
https://github.com/forkless/NotAlterra.git
synced 2026-08-16 08:36:37 +02:00
fix release workflow: provenance generates, release creates draft
This commit is contained in:
@@ -77,35 +77,8 @@ jobs:
|
|||||||
name: release-binaries
|
name: release-binaries
|
||||||
path: builds/
|
path: builds/
|
||||||
|
|
||||||
release:
|
|
||||||
needs: build
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
id-token: write
|
|
||||||
attestations: write
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: release-binaries
|
|
||||||
path: builds/
|
|
||||||
- name: Download provenance
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: "${{ github.event.repository.name }}-${{ github.ref_name }}.attestation"
|
|
||||||
path: builds/
|
|
||||||
continue-on-error: true
|
|
||||||
- name: Create draft release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
files: builds/*
|
|
||||||
body_path: _release.md
|
|
||||||
draft: true
|
|
||||||
|
|
||||||
provenance:
|
provenance:
|
||||||
needs: [build, release]
|
needs: build
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -114,4 +87,25 @@ jobs:
|
|||||||
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
|
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
|
||||||
with:
|
with:
|
||||||
base64-subjects: "${{ needs.build.outputs.hashes }}"
|
base64-subjects: "${{ needs.build.outputs.hashes }}"
|
||||||
upload-assets: true
|
upload-assets: false
|
||||||
|
|
||||||
|
release:
|
||||||
|
needs: [build, provenance]
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
attestations: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: builds/
|
||||||
|
- name: Create draft release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: builds/*/*
|
||||||
|
body_path: _release.md
|
||||||
|
draft: true
|
||||||
|
|||||||
Reference in New Issue
Block a user