Skip to content

Update build.gradle.kts #16

Update build.gradle.kts

Update build.gradle.kts #16

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: 17
- name: "build"
run: ./gradlew build
- name: "publish snapshot"
if: "${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}"
run: ./gradlew publish
env:
ORG_GRADLE_PROJECT_paperUsername: "${{ secrets.PAPER_REPO_USER }}"
ORG_GRADLE_PROJECT_paperPassword: "${{ secrets.PAPER_REPO_PASSWORD }}"