Skip to content

Commit

Permalink
create attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
a-mnich committed Jul 12, 2024
1 parent fed6602 commit 2a5ae2b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-zed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:

permissions:
contents: write
id-token: write
attestations: write

jobs:
build:
Expand Down Expand Up @@ -32,6 +34,11 @@ jobs:
- name: Run cargo
run: cargo build --release

- name: Attest build provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: 'target\release\Zed.exe'

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
Expand All @@ -43,6 +50,7 @@ jobs:
run: |
echo "CURRENT_DATE=$(date -u +'%Y.%m.%d')" >> $GITHUB_ENV
echo "CURRENT_DATE=$CURRENT_DATE" >> $GITHUB_OUTPUT
- name: Update Nightly Current
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/heads/auto-release')
Expand Down

0 comments on commit 2a5ae2b

Please sign in to comment.