mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-26 02:09:30 +00:00
29 lines
895 B
YAML
29 lines
895 B
YAML
name: Build
|
|
on: push
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: temurin
|
|
java-version: 17
|
|
- name: Configure Git
|
|
run: |
|
|
git config --global user.email "no-reply@github.com"
|
|
git config --global user.name "Github Actions"
|
|
chmod +x gradlew
|
|
- name: Patch
|
|
run: |
|
|
./gradlew applyPatches --stacktrace
|
|
- name: Build
|
|
run: |
|
|
./gradlew createReobfPaperclipJar --stacktrace
|
|
- name: Archive Paperclip
|
|
uses: actions/upload-artifact@v3.1.0
|
|
with:
|
|
name: DivineMC-1.19.2
|
|
path: build/libs/DivineMC-paperclip-1.19.2-R0.1-SNAPSHOT-reobf.jar |