File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1717 echo $REPOSITORY_NAME
1818 export PACKAGE_VERSION=$(xmlstarlet sel -t -m '//VersionPrefix[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
1919 echo $PACKAGE_VERSION
20- echo $PACKAGE_VERSION > PACKAGE_VERSION.txt
2120 export PACKAGE_RELEASE_NOTES=$(xmlstarlet sel -t -m '//PackageReleaseNotes[1]' -v . -n <Platform.$REPOSITORY_NAME/Platform.$REPOSITORY_NAME.csproj)
2221 echo $PACKAGE_RELEASE_NOTES
23- echo $PACKAGE_RELEASE_NOTES > PACKAGE_RELEASE_NOTES.txt
22+ curl --request POST \
23+ --url https://api.github.com/repos/${{ github.repository }}/releases \
24+ --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
25+ --header 'content-type: application/json' \
26+ --data '{
27+ "tag_name": "${PACKAGE_VERSION}",
28+ "target_commitish": "master",
29+ "name": "${PACKAGE_VERSION}",
30+ "body": "${PACKAGE_RELEASE_NOTES}",
31+ "draft": false,
32+ "prerelease": false
33+ }'
You can’t perform that action at this time.
0 commit comments