From 25a1d92e520778e2ef7eca6fb9971ac0de87f5ff Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Sat, 12 Aug 2023 11:39:10 +0200 Subject: [PATCH] Update .gitea/workflows/release.yaml --- .gitea/workflows/release.yaml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 83674dd..da5e30b 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -22,5 +22,32 @@ jobs: with: context: ./discordbot push: true - tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:latest + tags: gitea.xeovalyte.dev/xeovalyte/polarcraft:nightly + + Build and Publish Minecraft Mod: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: 17 + + - name: Grant execute permission for gradlew + working-directory: ./mod + run: chmod +x gradlew + + - name: Build with Gradle + working-directory: ./mod + run: ./gradlew build + + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: polarcraft-mod.jar + path: | + mod/build/libs/*.jar + !mod/build/libs/*-sources.jar + !mod/build/libs/*-dev.jar \ No newline at end of file