update folia upstream https://github.com/PaperMC/Folia/commit/11e6f61… #45
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: Java CI-CD with Gradle | |
on: | |
push: | |
paths: | |
- 'patches/**' | |
- 'gradle.properties' | |
- 'gradle/wrapper/gradle-wrapper.properties' | |
- 'build.gradle.kts' | |
- 'settings.gradle.kts' | |
- '.github/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Pull & Checkout" | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: "Set up JDK 17" | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'zulu' | |
cache: 'gradle' | |
- name: "Config Git" | |
run: | | |
git config --global user.email "actions@github.com" | |
git config --global user.name "actions" | |
- name: "Apply Patches" | |
run: ./gradlew applyPatches | |
- name: "Build Mojmap" | |
run: ./gradlew createMojmapPaperclipJar | |
- name: "Copy jar to staging" | |
run: mkdir staging && cp build/libs/*.jar staging | |
- uses: "softprops/action-gh-release@v2" | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
staging/*.jar |