Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Build with JDK 21

Build with JDK 21 #11

Workflow file for this run

name: Build
on: [ push, pull_request ]
jobs:
build:
# Only run on PRs if the source branch is on someone else's repo
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- name: "jdk"
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 21
- name: "publish snapshot"
run: |
git config --global user.email "no-reply@github.com"
git config --global user.name "Github Actions"
./gradlew publish --stacktrace
env:
ORG_GRADLE_PROJECT_paperUsername: "${{ secrets.PAPER_REPO_USER }}"
ORG_GRADLE_PROJECT_paperPassword: "${{ secrets.PAPER_REPO_PASSWORD }}"