Update for 1.21, drop Spigot and legacy support #52
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 ViewDistanceTweaks | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 8 | |
distribution: 'adopt' | |
- name: Check out NabConfiguration | |
uses: actions/checkout@v2 | |
with: | |
repository: froobynooby/nab-configuration | |
- name: Set up JDK | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21 | |
distribution: 'temurin' | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Install NabConfiguration | |
run: ./gradlew install | |
- name: Check out ViewDistanceTweaks | |
uses: actions/checkout@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Build ViewDistanceTweaks | |
run: ./gradlew shadowJar | |
- name: Archive ViewDistanceTweaks | |
uses: actions/upload-artifact@v2 | |
with: | |
path: build/libs/*.jar | |
name: ViewDistanceTweaks |