Skip to content

Commit

Permalink
updated release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aiantsen committed Jan 22, 2024
1 parent 22750a5 commit 015a26b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,22 @@ jobs:
with:
name: Archive-v${{ env.LIBRARY_VERSION }}
path: dist/*
- name: Create release notes
run: |
grep -Pzo '(?s)^## \[${{ env.LIBRARY_VERSION }}\].*?(?=## \[)' CHANGELOG.md | sed '$ s/.$//' > RELEASE_NOTES.md
sed -i 's/\[${{ env.LIBRARY_VERSION }}\]/Release [v${{ env.LIBRARY_VERSION }}]/' RELEASE_NOTES.md
- name: Create release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: ${{ env.LIBRARY_VERSION }}
name: v${{ env.LIBRARY_VERSION }}
draft: true
prerelease: false
makeLatest: true
skipIfReleaseExists: true
replacesArtifacts: true
removeArtifacts: true
tag: "v${{ env.LIBRARY_VERSION }}"
body: "Please see [CHANGELOG.md](${{ github.server_url }}/${{ github.repository }}/blob/main/CHANGELOG.md)"
bodyFile: RELEASE_NOTES.md
artifacts: dist/*

0 comments on commit 015a26b

Please sign in to comment.