9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

Update CI

This commit is contained in:
violetc
2025-04-22 18:15:03 +08:00
parent 359e1be5e6
commit 3941929ae2
2 changed files with 14 additions and 10 deletions

View File

@@ -8,6 +8,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: github.repository == 'LeavesMC/Leaves'
steps:
- name: Get repository
uses: actions/checkout@v4
@@ -37,7 +38,9 @@ jobs:
env:
BUILD_NUMBER: ${{ env.BUILD_NUMBER }}
- name: Publish to Maven repo
run: ./gradlew :leaves-api:publish
run: |
./gradlew :leaves-api:publish
./gradlew :leaves-server:publishDevBundlePublicationToLeavesRepository -PpublishDevBundle=true
env:
LEAVES_USERNAME: ${{ secrets.NEW_REPO_USERNAME }}
LEAVES_PASSWORD: ${{ secrets.NEW_REPO_PASSWORD }}
@@ -95,11 +98,3 @@ jobs:
secret_v2: ${{ secrets.API_V2_PUSH_TOKEN }}
tag: ${{ env.tag }}
run: sh scripts/PushToAPI.sh
- name: Upload to cloud
if: "!contains(github.event.commits[0].message, '[release-skip]')"
continue-on-error: true
uses: wei/rclone@v1
env:
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
with:
args: copy ${{ env.jar }} FTP:${{ env.tag }} --contimeout 10s --progress