Skip to content

Commit

Permalink
feat: artefact attestation (#987)
Browse files Browse the repository at this point in the history
fixes #772
  • Loading branch information
praveen5959 authored Nov 11, 2024
1 parent 615cfbc commit d361b69
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
build-linux:
name: Build for ${{matrix.target}}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
attestations: write
strategy:
fail-fast: false
matrix:
Expand All @@ -39,6 +43,11 @@ jobs:
run: |
mv target/${{ matrix.target }}/release/parseable Parseable_OSS_${{ matrix.target }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: Parseable_OSS_${{ matrix.target }}

- name: Create Artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -56,6 +65,10 @@ jobs:

build-windows:
runs-on: windows-latest
permissions:
id-token: write
contents: read
attestations: write
steps:
- name: Checkout
uses: actions/checkout@v1
Expand All @@ -75,6 +88,11 @@ jobs:
run: |
mv target/x86_64-pc-windows-msvc/release/PARSEABLE.exe Parseable_OSS_x86_64-pc-windows-msvc.exe
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: Parseable_OSS_x86_64-pc-windows-msvc.exe

- name: Create artifact for Windows
uses: actions/upload-artifact@v4
with:
Expand All @@ -92,6 +110,10 @@ jobs:

build-mac:
runs-on: macos-latest
permissions:
id-token: write
contents: read
attestations: write
strategy:
matrix:
target:
Expand Down Expand Up @@ -120,6 +142,11 @@ jobs:
run: |
mv target/${{ matrix.target }}/release/Parseable Parseable_OSS_${{ matrix.target }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: Parseable_OSS_${{ matrix.target }}

- name: Create artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit d361b69

Please sign in to comment.