3.3.0 for 1.20.4 #40
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/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
check-latest: true | |
- name: Cache Gradle configuration | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle | |
.gradle | |
build | |
fabric/.gradle | |
fabric/build | |
neoforge/.gradle | |
neoforge/build | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/LICENSE') }} | |
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 }} |