Add workflow to build jar and store as artifact
Some checks failed
Build TurnBasedMC and store Artifact / build-and-store-artifact (push) Has been cancelled
Some checks failed
Build TurnBasedMC and store Artifact / build-and-store-artifact (push) Has been cancelled
This commit is contained in:
parent
da17601477
commit
56353462f7
1 changed files with 18 additions and 0 deletions
18
.forgejo/workflows/build-jar.yaml
Normal file
18
.forgejo/workflows/build-jar.yaml
Normal file
|
@ -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/
|
Loading…
Reference in a new issue