Skip to content

Commit 4dad6ad

Browse files
committed
Create release on Github
1 parent c5b030d commit 4dad6ad

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.pr.merge.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,17 @@ jobs:
5151
- name: Push Changes and Tags
5252
run: |
5353
git push origin HEAD:release --tags
54+
55+
- name: "Create Release"
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.ADMIN_TOKEN }}
58+
run: |
59+
curl --request POST \
60+
--url https://api.github.com/repos/${{ github.repository }}/releases \
61+
--header "Authorization: Bearer $GITHUB_TOKEN" \
62+
--header 'Content-Type: application/json' \
63+
--data "{
64+
\"tag_name\": \"$PR_VERSION\",
65+
\"name\": \"Release $PR_VERSION\",
66+
\"body\": \"Release notes for version v$PR_VERSION\"
67+
}"

0 commit comments

Comments
 (0)