Fix BungeeCord dependency resolution for CI builds #24
Workflow file for this run
This file contains hidden or 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 Pull Request | |
| on: [pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for git describe | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v3 | |
| - name: Build | |
| run: ./gradlew build | |
| - name: Archive artifacts (Connect Bungee) | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: Connect Bungee | |
| path: bungee/build/libs/connect-bungee.jar | |
| - name: Archive artifacts (Connect Spigot) | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: Connect Spigot | |
| path: spigot/build/libs/connect-spigot.jar | |
| - name: Archive artifacts (Connect Velocity) | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: Connect Velocity | |
| path: velocity/build/libs/connect-velocity.jar |