tweaks724/.forgejo/workflows/build.yml
Minecon724 864a9133d2
Some checks failed
/ build (push) Failing after 43s
Try that
2024-12-28 17:06:46 +01:00

32 lines
No EOL
979 B
YAML

on: [push]
jobs:
build:
runs-on: docker
container: debian:sid
steps:
- name: Install JDK and other deps
run: apt update && 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: Download NMS
run: ./tools/download_nms.sh ~
- name: Build for 1.21.1
run: mkdir artifact && mvn clean package && mv target/*.jar artifact/
- name: Build for 1.21.3
run: mvn clean package -Dproject.spigot.version=1.21.3-R0.1-SNAPSHOT && mv target/*.jar artifact/
- name: Build for 1.21.4
run: mvn clean package -Dproject.spigot.version=1.21.4-R0.1-SNAPSHOT && mv target/*.jar artifact/
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
path: artifact