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 fc83bd9 commit c8d8273
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,20 +125,24 @@ jobs:
run: |
latest_release_tag=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases \
| jq -r 'sort_by(.created_at) | last(.[]).tag_name')
data="{
\"tag_name\": \"${{ github.ref_name }}\",
\"previous_tag_name\": \"${latest_release_tag}\",
\"prerelease\": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }},
\"generate_release_notes\": true
}"
curl -L \
-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 \
-d $data
echo Data: $data
-d "{
\"tag_name\": \"${{ github.ref_name }}\",
\"previous_tag_name\": \"${latest_release_tag}\",
\"prerelease\": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }},
\"generate_release_notes\": true
}"
echo "Parameters:
\"tag_name\": \"${{ github.ref_name }}\",
\"previous_tag_name\": \"${latest_release_tag}\",
\"prerelease\": ${{ contains(github.ref, 'beta') || contains(github.ref, 'rc') }},
\"generate_release_notes\": true
}"
- name: Create release assets
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit c8d8273

Please sign in to comment.