Skip to content

Commit

Permalink
docs: add attestation message to GitHub release message
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksteamdev committed Dec 30, 2024
1 parent 87167cd commit 97a4b65
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,30 @@ jobs:
with:
subject-path: 'packages/mcp-server/dist/*'

- name: Get existing release body
id: get_release
uses: actions/github-script@v7
with:
script: |
const release = await github.rest.repos.getRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ github.event.release.id }}
});
return release.data.body || '';
- name: Upload Release Artifacts
env:
GH_WORKFLOW_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
EXISTING_BODY: ${{ steps.get_release.outputs.result }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
omitBody: true
omitName: true
artifacts: "packages/obsidian-plugin/releases/obsidian-plugin-*.zip,packages/obsidian-plugin/main.js,packages/obsidian-plugin/manifest.json,packages/obsidian-plugin/styles.css,packages/mcp-server/dist/*"
body: |
${{ env.EXISTING_BODY }}
---
✨ This release includes attested build artifacts.
📝 View attestation details in the [workflow run](${{ env.GH_WORKFLOW_URL }})

0 comments on commit 97a4b65

Please sign in to comment.