3.2.0 for 1.20.4 #39
Workflow file for this run
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
name: Publish | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
runs-on: | |
ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/[email protected] | |
- name: Validate Gradle Wrapper | |
uses: gradle/[email protected] | |
- name: Set up JDK 17 | |
uses: actions/[email protected] | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
check-latest: true | |
- name: Cache Gradle configuration | |
uses: actions/[email protected] | |
with: | |
path: | | |
~/.gradle | |
.gradle | |
build | |
fabric/.gradle | |
fabric/build | |
neoforge/.gradle | |
neoforge/build | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/settings.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle | |
- name: Delete old files | |
run: rm -rf build/libs fabric/build/libs neoforge/build/libs | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Publish to GitHub | |
uses: AButler/[email protected] | |
with: | |
files: "fabric/build/libs/*.jar;neoforge/build/libs/*-all.jar" | |
repo-token: ${{ secrets.GITHUB_TOKEN }} |