mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2025-07-03 02:41:29 +02:00
Separate changelog generation from release publishing
This commit is contained in:
parent
5bc2d1886e
commit
5fdcb7dbff
12
.github/workflows/release-tags.yml
vendored
12
.github/workflows/release-tags.yml
vendored
@ -58,17 +58,15 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Release under current tag
|
||||
run: gh release create "${RELEASE_VERSION}" --generate-notes ./build/libs/*.jar
|
||||
continue-on-error: true
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Save changelog
|
||||
run: |
|
||||
export "CHANGELOG_FILE=$(mktemp --suffix=.md)"
|
||||
echo "CHANGELOG_FILE=${CHANGELOG_FILE}" >> $GITHUB_ENV
|
||||
gh release view --json body --jq .body > "${CHANGELOG_FILE}"
|
||||
gh api --method POST -H "Accept: application/vnd.github+json" \
|
||||
"/repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
|
||||
-f tag_name="${RELEASE_VERSION}" \
|
||||
--jq ".body" > "${CHANGELOG_FILE}"
|
||||
cat "${CHANGELOG_FILE}"
|
||||
gh release create "${RELEASE_VERSION}" -F "${CHANGELOG_FILE}" ./build/libs/*.jar
|
||||
shell: bash
|
||||
continue-on-error: true
|
||||
env:
|
||||
|
Loading…
x
Reference in New Issue
Block a user