tweaks724/.forgejo/workflows/build.yml
Minecon724 709027abc2
Some checks failed
/ deploy (push) Failing after 1m19s
optimize workflwo
2024-11-30 12:43:14 +01:00

26 lines
No EOL
1,009 B
YAML

on: [push]
jobs:
deploy:
runs-on: docker
container: debian:sid
steps:
- name: Prepare for installation
run: apt update
- name: Install JDK and other deps
run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl zstd
#- name: BuildTools for NMS
# run: mkdir /tmp/buildtools && cd /tmp/buildtools && curl -O https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar && java -jar BuildTools.jar --rev 1.21.1 --remapped && cd
- name: Clone repository
run: git clone https://git.m724.eu/Minecon724/tweaks724.git
- name: Download NMS
run: curl -O https://git.m724.eu/Minecon724/temporary/raw/branch/master/XRIH.tar.zst && tar -xaf XRIH.tar.zst && rm XRIH.tar.zst
- name: Build
run: mvn clean package
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: target/tweaks-*.jar