mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 06:39:56 +03:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
|
|
|
|
name: Java CI with Gradle
|
|
|
|
on:
|
|
push:
|
|
branches: [ "1.18.2" ]
|
|
pull_request:
|
|
branches: [ "1.18.2" ]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
|
|
# Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies.
|
|
# See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md
|
|
- name: Setup Gradle
|
|
run: |
|
|
chmod +x ./gradlew
|
|
./gradlew setup
|
|
|
|
- name: Build with Gradle Wrapper
|
|
run: ./gradlew mohistJar
|
|
|
|
- name: Upload a Build Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Mohist-1.18.2-server
|
|
path: projects/forge/build/libs/*-server.jar
|