tweaks724/.forgejo/workflows/build.yml

24 lines
1,000 B
YAML
Raw Normal View History

2024-11-16 12:37:12 +01:00
on: [push]
jobs:
deploy:
runs-on: docker
container: debian:sid
steps:
- name: Prepare for installation
run: apt update
2024-11-29 17:32:58 +01:00
- name: Install JDK and other deps
run: apt install --no-install-recommends -y openjdk-21-jdk-headless maven git nodejs curl
2024-11-29 17:23:26 +01:00
2024-11-30 12:27:24 +01:00
#- 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: Download NMS
2024-11-30 12:29:18 +01:00
run: curl -s -L https://git.m724.eu/Minecon724/temporary/raw/branch/master/XRIH.tar.zst | tar xv - --zstd -C .
2024-11-29 17:23:26 +01:00
2024-11-16 12:37:12 +01:00
- name: Clone repository
2024-11-30 12:27:24 +01:00
run: git clone https://git.m724.eu/Minecon724/tweaks724.git && cd tweaks724
2024-11-16 12:37:12 +01:00
- name: Build
run: mvn clean package
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
2024-11-28 18:43:37 +01:00
path: target/tweaks-*.jar