fix: conductor crashing server #563
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: Build | |
on: [workflow_dispatch, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: temurin | |
cache: gradle | |
- name: Validate Gradle Wrapper Integrity | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Make Gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: Build & Publish to Maven | |
env: | |
MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} | |
run: ./gradlew build :fabric:publish :forge:publish | |
- name: Collect built jars | |
run: ./gradlew moveBuiltJars | |
- name: Capture build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Artifacts | |
path: jars |