mirror of
https://codeberg.org/moonleay/Gimbal.git
synced 2025-06-07 08:56:17 +02:00
ci: updated release ci/cd
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
e7d0e35bcf
commit
a6c6bed5be
2 changed files with 14 additions and 2 deletions
|
@ -17,6 +17,10 @@ jobs:
|
|||
id: vars
|
||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set git tag description
|
||||
id: vars2
|
||||
run: echo "tag_desc=$(git for-each-ref --format='%(contents)' $GITHUB_REF)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check outputs
|
||||
run: echo
|
||||
|
||||
|
@ -30,25 +34,30 @@ jobs:
|
|||
name: Setup Gradle
|
||||
env:
|
||||
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||||
GIT_TAG: ${{ steps.vars2.outputs.tag_desc }}
|
||||
|
||||
- run: ./gradlew runDatagen
|
||||
name: Generate assets
|
||||
env:
|
||||
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||||
GIT_TAG: ${{ steps.vars2.outputs.tag_desc }}
|
||||
|
||||
- run: ./gradlew build
|
||||
name: Build project
|
||||
env:
|
||||
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||||
GIT_TAG: ${{ steps.vars2.outputs.tag_desc }}
|
||||
|
||||
- run: ./gradlew publish
|
||||
name: Upload
|
||||
env:
|
||||
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||||
GIT_TAG: ${{ steps.vars2.outputs.tag_desc }}
|
||||
PACKAGE_REPO_KEY: ${{ secrets.PACKAGE_REPO_KEY }}
|
||||
|
||||
- run: ./gradlew modrinth
|
||||
name: Publish to Modrinth
|
||||
env:
|
||||
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||||
GIT_TAG: ${{ steps.vars2.outputs.tag_desc }}
|
||||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue