Skip to content

Commit

Permalink
add artifact attestation for entrypoint dll
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell committed Nov 8, 2024
1 parent 1ec13dd commit 979dd48
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
on:
release:
types: [ published ]

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

jobs:
publish:
Expand All @@ -22,9 +27,14 @@ jobs:
- name: Build
run: dotnet publish -c Release --no-self-contained -p:Version=${{ github.event.release.tag_name }} -p:DebugType=None -p:UseAppHost=false -o ./pub-out DragonFruit.OnionFruit.Deploy.csproj

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: 'pub-out/DragonFruit.OnionFruit.Deploy.dll'

- name: Archive
run: cd pub-out && zip -r ../onionfruit-deploy.zip .

- name: Upload
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit 979dd48

Please sign in to comment.