Skip to content

修改部分逻辑,准备大改 #116

修改部分逻辑,准备大改

修改部分逻辑,准备大改 #116

Workflow file for this run

name: build
on:
push:
paths-ignore:
- '.docs/**'
- '*.md'
- 'LICENSE'
- '.gitignore'
- '.gitattributes'
jobs:
build:
runs-on: windows-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'microsoft'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
# - name: Candy Server Test
# run: ./gradlew runCandyServerTest
# timeout-minutes: 2
- name: Build with Gradle
run: ./gradlew build
- name: Upload Neoforge
uses: actions/upload-artifact@v4
with:
name: neoforge
path: neoforge/build/libs/*[0-9].jar
- name: Upload Forge
uses: actions/upload-artifact@v4
with:
name: forge
path: forge/build/libs/*[0-9].jar
- name: Upload Fabric
uses: actions/upload-artifact@v4
with:
name: fabric
path: fabric/build/libs/*[0-9].jar
# - name: Publish Release on Gitee
# uses: nicennnnnnnlee/[email protected]
# id: create_release
# with:
# gitee_owner: Bread-NiceCat
# gitee_repo: candycraftce
# gitee_token: ${{ secrets.GITEE_TOKEN }}
# gitee_tag_name:
# gitee_release_name: Test v1.0.0
# gitee_release_body:
# gitee_target_commitish: master
# gitee_upload_retry_times: 3
# gitee_files: |
#