Change build action to build tags only
This commit is contained in:
parent
75b710c3d4
commit
01bf977fd6
1 changed files with 4 additions and 4 deletions
|
@ -1,19 +1,19 @@
|
||||||
name: Build TurnBasedMC and store Artifact
|
name: Build TurnBasedMC and store Artifact
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- 'neoforge'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-store-artifact:
|
build-and-store-artifact:
|
||||||
runs-on: archLinux
|
runs-on: archLinux
|
||||||
steps:
|
steps:
|
||||||
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TurnBasedMinecraftMod
|
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/TurnBasedMinecraftMod.git TurnBasedMinecraftMod
|
||||||
- run: cd TurnBasedMinecraftMod && git checkout neoforge
|
- run: cd TurnBasedMinecraftMod && git checkout ${GITHUB_REF_NAME}
|
||||||
- run: cd TurnBasedMinecraftMod && sed -i '/org.gradle.jvmargs/s/Xmx[0-9]\+m/Xmx2048m/' gradle.properties
|
- run: cd TurnBasedMinecraftMod && sed -i '/org.gradle.jvmargs/s/Xmx[0-9]\+m/Xmx2048m/' gradle.properties
|
||||||
- run: cd TurnBasedMinecraftMod && ./gradlew --console=plain build
|
- run: cd TurnBasedMinecraftMod && ./gradlew --console=plain build
|
||||||
- run: cd TurnBasedMinecraftMod/build/libs && find . -type f -exec sha256sum '{}' ';' -exec bash -c 'sha256sum {} >> sha256sums.txt' ';' && java --version >> javaVersion.txt && javac --version >> javaVersion.txt
|
- 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
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: TBMM_NeoForge_jars_sha256sums
|
name: TBMM_NeoForge_jars_sha256sums_${GITHUB_REF_NAME}
|
||||||
path: TurnBasedMinecraftMod/build/libs/
|
path: TurnBasedMinecraftMod/build/libs/
|
||||||
|
|
Loading…
Reference in a new issue