mirror of
https://codeberg.org/moonleay/Gimbal.git
synced 2025-06-07 08:56:17 +02:00
ci: updated release publish
Signed-off-by: moonleay <contact@moonleay.net>
This commit is contained in:
parent
84bb0c8961
commit
0efc19ed72
2 changed files with 7 additions and 20 deletions
|
@ -20,20 +20,6 @@ jobs:
|
|||
id: vars
|
||||
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Get latest git tag
|
||||
id: gitvar
|
||||
run: echo "tag=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Set git tag description
|
||||
id: vars2
|
||||
run: echo "tag_desc=$(git tag -l --format='%(contents)' ${{ steps.gitvar.outputs.tag }})" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Check outputs
|
||||
run: echo "short ${{ steps.vars.outputs.sha_short }}, ref $GITHUB_REF, tag ${{ steps.gitvar.outputs.tag }}, tag_desc ${{ steps.vars2.outputs.tag_desc }}"
|
||||
|
||||
- name: Tag descriptions
|
||||
run: git tag -l --format='%(contents)' | cat
|
||||
|
||||
- uses: https://github.com/actions/setup-java@v4
|
||||
name: Setup Java
|
||||
with:
|
||||
|
@ -44,30 +30,25 @@ 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