Skip to content

Commit

Permalink
For test
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Dec 24, 2024
1 parent 51e5d6d commit da9234a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,19 @@ jobs:
run: |
latest_release_tag=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases \
| jq -r 'sort_by(.created_at) | last(.[]).tag_name')
# Generate release notes explicitly
release_notes=$(curl -s \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/releases/generate-notes \
-d '{
"tag_name": "${{ github.ref_name }}",
"previous_tag_name": "${latest_release_tag}",
}' | jq -r '.body')
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
Expand All @@ -133,13 +146,12 @@ jobs:
https://api.github.com/repos/${{ github.repository }}/releases \
-d '{
"tag_name": "${{ github.ref_name }}",
"previous_tag_name": "${latest_release_tag}",
"prerelease": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
"prerelease": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }},
"body": "${release_notes}"
}'
- name: Create release assets
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
dist/*
upstream/*
Expand Down

0 comments on commit da9234a

Please sign in to comment.