9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

[ci skip] Upload to cloud (#215)

This commit is contained in:
LittleChest
2024-05-23 20:02:35 +08:00
committed by GitHub
parent 0d3dee8ee9
commit 6b62f76d96
2 changed files with 38 additions and 31 deletions

View File

@@ -1,21 +1,11 @@
# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Leaves Test CI
on:
push:
branches-ignore:
- master
branches-ignore: [ master ]
pull_request:
types:
- opened
- reopened
- synchronize
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
@@ -38,14 +28,20 @@ jobs:
- name: Setup Git Config
run: |
git config --global user.email "ci@leavesmc.org"
git config --global user.name "Leaves CI"
git config --global user.name "LeavesMC CI"
- name: Get Build Number
run: bash scripts/GetBuildNumber.sh
- name: Apply Patches
run: ./gradlew applyPatches
- name: Create Paperclip Jar
run: ./gradlew createReobfPaperclipJar
- name: Create Leavesclip Jar
run: ./gradlew createMojmapLeavesclipJar
env:
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
- name: Get Release Info
run: sh scripts/GetReleaseInfo.sh
- name: Archive Leaves
env:
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.jar }}