Skip to content

Commit

Permalink
Chore: Update Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MoGuangYu committed Sep 11, 2023
1 parent a132769 commit 44496e3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,19 @@ jobs:
id: tag
run: echo "TAG_NAME=${{ env.TAG_NAME }}" >> $GITHUB_ENV

- name: Get Latest Changelog
id: changelog
run: |
latest_version=$(grep -m1 '^## v[0-9.]\+' changelog.md | sed 's/## v//')
sed -n "/^## v${latest_version}/,/^##/p" changelog.md | grep -v '## ' > release_notes.txt
echo "CHANGELOG=release_notes.txt" >> $GITHUB_ENV
- name: Upload Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.TAG_NAME }}
files: Surfing_v*.zip
generate_release_notes: true
body: ${{ github.event.inputs.release_notes }}
generate_release_notes: false
body_path: release_notes.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 44496e3

Please sign in to comment.