Skip to content

Commit

Permalink
reusable workflow?
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed Apr 25, 2024
1 parent 2fc84ec commit 3a032c5
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ jobs:
run: |
echo "::set-output name=hashes::$(sha256sum ${{ env.BUILD_DIR }}/*.tar.gz ${{ env.BUILD_DIR }}/*.deb ${{ env.BUILD_DIR }}/*.rpm | base64 -w0)"
- name: Generate provenance
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: true

- name: Upload binaries to release
uses: ncipollo/release-action@v1
with:
Expand All @@ -79,6 +73,18 @@ jobs:
updateOnlyUnreleased: true
artifacts: "${{ env.BUILD_DIR }}/*.tar.gz,${{ env.BUILD_DIR }}/*.deb,${{ env.BUILD_DIR }}/*.rpm"

provenance:
needs: [linux]
permissions:
actions: read
id-token: write
contents: write
- name: Generate provenance
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
base64-subjects: "${{ needs.build.outputs.hashes }}"
upload-assets: true

freebsd:
runs-on: ubuntu-latest
strategy:
Expand Down

0 comments on commit 3a032c5

Please sign in to comment.