From 56353462f7b08b6ea03b6d768d7f2f6cc36e5a14 Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 5 Jan 2024 13:19:44 +0900 Subject: [PATCH] Add workflow to build jar and store as artifact --- .forgejo/workflows/build-jar.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .forgejo/workflows/build-jar.yaml diff --git a/.forgejo/workflows/build-jar.yaml b/.forgejo/workflows/build-jar.yaml new file mode 100644 index 0000000..eb06b12 --- /dev/null +++ b/.forgejo/workflows/build-jar.yaml @@ -0,0 +1,18 @@ +name: Build TurnBasedMC and store Artifact +on: + push: + branches: + - 'master' + +jobs: + build-and-store-artifact: + runs-on: archLinux + steps: + - run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TBMM + - run: cd TBMM && git checkout master + - run: cd TBMM && ./gradlew build + - run: cd TBMM/build/libs && java --version >> javaVersion.txt && javac --version >> javaVersion.txt && find . -type f -exec bash -c 'sha256sum {} >> sha256sums.txt' + - uses: actions/upload-artifact@v3 + with: + name: built-jars-and-metadata + path: TBMM/build/libs/ -- 2.49.0