修复贴图错误,粒子错误,预埋染料色板 #562
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a Java project with Gradle | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build Release | |
on : [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch names | |
id: branch-names | |
uses: tj-actions/branch-names@v8 | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
src/generated | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle-${{steps.branch-names.outputs.current_branch}} | |
- uses: actions/checkout@v4 | |
- uses: BrycensRanch/read-properties-action@v1 | |
id: version | |
with: | |
file: gradle.properties | |
property: mod_version | |
default: 1.0.0 | |
- name: Set up JDK 21 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '21' | |
distribution: 'adopt' | |
- name: Set version env | |
run: echo "RELEASE_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Datagen with gradle | |
run: ./gradlew runData | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload binaries to release | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wild_wind-${{steps.version.outputs.value}}.jar | |
path: build/libs/wild_wind-${{steps.version.outputs.value}}.jar | |
repo-token: ${{ secrets.ACTION_TOKEN }} |