aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-09-06 18:32:41 +0200
committerLinnea Gräf <nea@nea.moe>2025-09-06 18:35:13 +0200
commitd52e5beced3f49ebfaf71b877555f59d98a30576 (patch)
treeda68da13993950ad7f789d582e9ab0555f81e76b /.github
parentaa7a92e95d97a4b428ff685c6bdf1ab5fd3b3268 (diff)
downloadFirmament-d52e5beced3f49ebfaf71b877555f59d98a30576.tar.gz
Firmament-d52e5beced3f49ebfaf71b877555f59d98a30576.tar.bz2
Firmament-d52e5beced3f49ebfaf71b877555f59d98a30576.zip
build: release generator
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 18146a8..ed9ca61 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -67,3 +67,29 @@ jobs:
curl "$WEBHOOK_URL" -X POST -H "Content-type: multipart/form-data" --form "files[0]=@$(echo *.jar)"
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
+
+ prepare-release:
+ name: Prepare a relase
+ runs-on: ubuntu-22.04
+ needs: build
+ if: ${{ 'push' == github.event_name && startsWith(github.ref, 'refs/tags/') }}
+ steps:
+ - uses: actions/checkout@v4
+ name: Checkout repository
+ with:
+ fetch-tags: true
+ fetch-depth: 0
+ filter: 'tree:0'
+
+ - name: Download generated artifact
+ uses: actions/download-artifact@v4
+ with:
+ name: built-mod-jar
+ - name: Generate changelog
+ run: ./docs/generate-changelog.sh > changelog.md
+
+ - name: Upload release
+ env:
+ GH_TOKEN: ${{ github.token }}
+ run: |
+ gh release create -t "Firmament ${GITHUB_REF#refs/tags/}" "${GITHUB_REF#refs/tags/}" -F "changelog.md" "*.jar"