make sure release message is included in release notes
This commit is contained in:
parent
7601f829bc
commit
e519d87193
@ -92,6 +92,9 @@ jobs:
|
||||
run: |
|
||||
VERSION=${GITHUB_REF#refs/tags/}
|
||||
|
||||
# Get the tag message
|
||||
TAG_MESSAGE=$(git tag -l --format='%(contents)' ${VERSION})
|
||||
|
||||
# Create release
|
||||
curl -X POST "https://repos.gmgauthier.com/api/v1/repos/${GITHUB_REPOSITORY}/releases" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
@ -99,7 +102,7 @@ jobs:
|
||||
-d "{
|
||||
\"tag_name\": \"${VERSION}\",
|
||||
\"name\": \"NotePad ${VERSION}\",
|
||||
\"body\": \"Release ${VERSION}\n\n## Downloads\n\n### Linux\n- **AppImage**: Portable, single-file executable (no installation needed)\n- **Tarball**: Extract and run \`sudo ./install.sh\` to install\n\n### Windows\n- **Zip**: Extract and run \`NotePad.exe\`\"
|
||||
\"body\": \"${TAG_MESSAGE}\n\n## Downloads\n\n### Linux\n- **AppImage**: Portable, single-file executable (no installation needed)\n- **Tarball**: Extract and run \`sudo ./install.sh\` to install\n\n### Windows\n- **Zip**: Extract and run \`NotePad.exe\`\"
|
||||
}" > release_response.json
|
||||
|
||||
RELEASE_ID=$(cat release_response.json | grep -o '"id":[0-9]*' | head -1 | cut -d':' -f2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user