Bump org.spigotmc:spigot from 1.16.4-R0.1-SNAPSHOT to 1.20.4-R0.1-SNAPSHOT #5
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' | |
permissions: | |
contents: 'read' | |
on: | |
pull_request: | |
push: | |
branches: [ 'master' ] | |
jobs: | |
build: | |
name: 'build, test and publish' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout repository' | |
uses: 'actions/checkout@v2' | |
- name: 'Setup JDK 17' | |
uses: 'actions/setup-java@v3' | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- name: 'Validate gradle wrapper' | |
uses: 'gradle/wrapper-validation-action@v1' | |
- name: 'Setup gradle permissions' | |
run: 'chmod +x gradlew' | |
- name: 'Test project' | |
run: './gradlew test' | |
- name: 'Build project' | |
run: './gradlew build' | |
- name: 'Publish project' | |
run: './gradlew publishToMavenLocal' |