mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 07:20:02 +03:00
47 lines
964 B
YAML
47 lines
964 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 1.12.2
|
|
pull_request:
|
|
branches:
|
|
- 1.12.2
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: build-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Java 8
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: 8
|
|
cache: gradle
|
|
|
|
- name: Make Gradle wrapper executable
|
|
run: chmod +x gradlew
|
|
|
|
- name: Prepare mappings
|
|
run: ./gradlew setup --no-daemon
|
|
|
|
- name: Build installer
|
|
run: ./gradlew installerJar --no-daemon
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Mohist-1.12.2-artifacts
|
|
path: |
|
|
projects/mohist/build/libs/*-installer.jar
|
|
projects/mohist/build/libs/*-server.jar
|