Skip to content

Updated Upstream (Pufferfish) #142

Updated Upstream (Pufferfish)

Updated Upstream (Pufferfish) #142

Workflow file for this run

name: Patch and 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:
- name: Checkout Git Repository
uses: actions/checkout@v2
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'
- name: Patch and build
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
./gradlew applyPatches --stacktrace
./gradlew build renamedReobfPaperclipJar --stacktrace
- name: Publish release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: 1.20.1
prerelease: false
title: Latest Build for 1.20.1
files: |
build/libs/sapphire-1.20.1.jar