tweaks724/.forgejo/workflows/build.yml

31 lines
866 B
YAML
Raw Normal View History

2024-11-16 12:37:12 +01:00
on: [push]
jobs:
build:
2024-11-16 12:37:12 +01:00
runs-on: docker
2025-01-20 12:04:18 +01:00
container: eclipse-temurin:21-alpine
2024-11-16 12:37:12 +01:00
steps:
2025-01-20 12:04:18 +01:00
- name: Install build dependencies
2025-01-20 12:04:38 +01:00
run: apk add git nodejs curl
2024-11-29 17:23:26 +01:00
2025-01-18 18:36:24 +01:00
- name: Checkout
uses: https://github.com/actions/checkout@v4
2024-11-30 19:13:48 +01:00
- name: Download NMS
run: ./tools/download_nms.sh ~
2025-01-20 11:55:07 +01:00
- name: Build for 1.21.4
2025-01-20 12:04:18 +01:00
run: ./mvnw package -Dproject.minecraft.version=1.21.4 -Dproject.craftbukkit.version=v1_21_R3
- name: Build for 1.21.3
2025-01-20 12:04:18 +01:00
run: ./mvnw package -Dproject.minecraft.version=1.21.3 -Dproject.craftbukkit.version=v1_21_R2
2025-01-20 11:55:07 +01:00
- name: Build for 1.21.1
2025-01-20 12:04:18 +01:00
run: ./mvnw package -Dproject.minecraft.version=1.21.1 -Dproject.craftbukkit.version=v1_21_R1
2024-11-29 17:23:26 +01:00
2024-11-16 12:37:12 +01:00
- name: Upload artifacts
uses: https://github.com/actions/upload-artifact@v3
with:
2025-01-20 12:04:18 +01:00
path: target/tweaks-*.jar