Skip to content

Commit

Permalink
Fix changelog generation
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Mar 22, 2024
1 parent cc4ae78 commit d2d42d6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,19 @@ jobs:
with:
args: release --clean --skip=validate --skip=sign --skip=sbom --skip=publish --snapshot

- name: Extract release changelog
if: startsWith(github.ref, 'refs/tags/')
id: changelog
uses: sean0x42/markdown-extract@v2
with:
file: docs/changelog.md
pattern: "${{ github.ref_name }}"
no-print-matched-heading: true

- name: Release binaries
if: startsWith(github.ref, 'refs/tags/')
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean --release-notes docs/changelog.md
args: release --clean --release-notes <(printf "${{ steps.changelog.outputs.markdown }}")
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d2d42d6

Please sign in to comment.