mirror of
https://codeberg.org/moonleay/Gimble.git
synced 2024-11-22 06:42:50 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
|
on:
|
||
|
push:
|
||
|
branches-ignore:
|
||
|
- refs/tags/
|
||
|
|
||
|
jobs:
|
||
|
dev:
|
||
|
runs-on: nodebullshit
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
name: Checkout
|
||
|
|
||
|
- name: Set short git commit reference
|
||
|
id: vars
|
||
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||
|
|
||
|
- uses: https://github.com/actions/setup-java@v4
|
||
|
name: Setup Java
|
||
|
with:
|
||
|
distribution: temurin
|
||
|
java-version: 17
|
||
|
|
||
|
- uses: https://github.com/gradle/actions/setup-gradle@v3
|
||
|
name: Setup Gradle
|
||
|
env:
|
||
|
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||
|
|
||
|
- run: ./gradlew runDatagen
|
||
|
name: Generate assets
|
||
|
env:
|
||
|
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||
|
|
||
|
- run: ./gradlew build
|
||
|
name: Build project
|
||
|
env:
|
||
|
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||
|
|
||
|
- run: ./gradlew publish
|
||
|
name: Upload
|
||
|
env:
|
||
|
GIT_SHA_SHORT: ${{ steps.vars.outputs.sha_short }}
|
||
|
PACKAGE_REPO_KEY: ${{ secrets.PACKAGE_REPO_KEY }}
|