mirror of
https://github.com/Dreeam-qwq/Gale.git
synced 2025-12-19 14:59:29 +00:00
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: Build Gale
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
# Always run on PRs if the source branch is on someone else's repo, and otherwise, only run if the last commit does not start with [ci-skip]
|
|
if: ${{ (github.event_name != 'pull_request' && !contains(github.event.commits[0].message, '[ci-skip]')) || github.repository != github.event.pull_request.head.repo.full_name }}
|
|
steps:
|
|
- name: Checkout Git repository
|
|
uses: actions/checkout@main
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@main
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@main
|
|
with:
|
|
distribution: zulu
|
|
java-version: 21
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Configure Git user details
|
|
run: git config --global user.email "no-reply@github.com" && git config --global user.name "Github Actions"
|
|
|
|
- name: Apply patches
|
|
run: ./gradlew applyAllPatches
|
|
- name: Create Paperclip jar
|
|
run: ./gradlew createMojmapPaperclipJar
|
|
|
|
- name: Upload Paperclip jar
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: Gale
|
|
path: gale-server/build/libs/gale-paperclip-*-mojmap.jar
|