TurnBasedMinecraftMod/.forgejo/workflows/build-jar.yaml

20 lines
909 B
YAML
Raw Normal View History

name: Build TurnBasedMC and store Artifact
on:
push:
2024-01-05 07:19:43 +00:00
tags:
2024-01-05 08:06:04 +00:00
- '*'
jobs:
build-and-store-artifact:
runs-on: archLinux
steps:
2024-01-05 07:27:27 +00:00
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TurnBasedMinecraftMod
2024-01-05 07:19:43 +00:00
- run: cd TurnBasedMinecraftMod && git checkout ${GITHUB_REF_NAME}
2024-01-05 07:27:27 +00:00
- run: cd TurnBasedMinecraftMod && sed -i '/org.gradle.jvmargs/s/Xmx[0-9]\+m/Xmx700m/' gradle.properties
- run: cd TurnBasedMinecraftMod && ./gradlew --console=plain build
2024-01-05 07:29:02 +00:00
- run: cd TurnBasedMinecraftMod/build/libs && find . -type f -exec sha256sum '{}' ';' -exec bash -c 'sha256sum {} >> sha256sums.txt' ';' && java --version >> javaVersion.txt && javac --version >> javaVersion.txt
- uses: actions/upload-artifact@v3
with:
2024-01-05 06:45:14 +00:00
name: TBMM_Forge_jars_sha256sums
2024-01-05 07:27:27 +00:00
path: TurnBasedMinecraftMod/build/libs/