Skip to content

Update to 1.20.4 and go back to Purpur #148

Update to 1.20.4 and go back to Purpur

Update to 1.20.4 and go back to Purpur #148

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-24.04
steps:
- name: Checkout Git Repository
uses: actions/checkout@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
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.4
prerelease: false
title: Latest Build for 1.20.4
files: |
build/libs/sapphire-1.20.4.jar