tweaks724/.forgejo/workflows/build.yml
Minecon724 10da8cfc54
All checks were successful
/ build (push) Successful in 41s
Try that
2024-12-28 15:17:20 +01:00

27 lines
No EOL
960 B
YAML

on: [push]
jobs:
build:
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: Clone repository
run: git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} https://git.m724.eu/Minecon724/tweaks724.git .
#- 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
run: ./tools/download_nms.sh ~
- name: Build for 1.21.1
run: mvn clean package
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: target