chore: fix release code (#470)

This commit is contained in:
Sekwah 2024-12-09 04:20:35 +00:00 committed by GitHub
parent a18c110cf3
commit 906c731ea2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -39,15 +39,15 @@ jobs:
path: ~/.gradle/caches path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle restore-keys: ${{ runner.os }}-gradle
- name: Set up JDK 17 - name: Set up JDK 16
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: zulu distribution: zulu
java-version: 17 java-version: 16
- name: Download MC assets # - name: Download MC assets
run: ./gradlew downloadAssets || ./gradlew downloadAssets || (sleep 30s && ./gradlew downloadAssets) # run: ./gradlew downloadAssets || ./gradlew downloadAssets || (sleep 30s && ./gradlew downloadAssets)
- name: Run DataGen # - name: Run DataGen
run: ./gradlew runData # run: ./gradlew runData
- name: Build and publish (release) - name: Build and publish (release)
env: env:
CURSE_API: ${{ secrets.CURSE_API }} CURSE_API: ${{ secrets.CURSE_API }}

View File

@ -19,11 +19,11 @@ jobs:
path: ~/.gradle/caches path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle restore-keys: ${{ runner.os }}-gradle
- name: Set up JDK 17 - name: Set up JDK 16
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: temurin distribution: temurin
java-version: 17 java-version: 16
# - name: Download MC assets # - name: Download MC assets
# run: ./gradlew downloadAssets --info --debug || ./gradlew downloadAssets --info --debug || (sleep 30s && ./gradlew downloadAssets --info --debug) # run: ./gradlew downloadAssets --info --debug || ./gradlew downloadAssets --info --debug || (sleep 30s && ./gradlew downloadAssets --info --debug)
# - name: Run DataGen # - name: Run DataGen