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

Update from Paper repo #9

Update from Paper repo

Update from Paper repo #9

Workflow file for this run

name: TT | Update & Build
on:
workflow_dispatch:
inputs:
paperclip:
description: 'Build a paperclip jar?'
required: false
type: boolean
run-name: Update from Paper repo
concurrency:
group: update-paper
cancel-in-progress: true
permissions:
contents: write
jobs:
release:
name: Update
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: gradle
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Make gradlew executable
run: chmod +x gradlew
- name: Setup remotes
continue-on-error: true
run: git remote add upstream https://github.com/PaperMC/Paper.git && git remote set-url --push upstream DISABLE
- name: Fetch upstream repo
run: git fetch upstream master
- name: Pull upstream master branch
run: git rebase upstream master
- name: Push to GitHub
run: git push
- name: Apply Patches
if: ${{ inputs.paperclip == true }}
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
./gradlew applyPatches --stacktrace
- name: Create Paperclip Jar
if: ${{ inputs.paperclip == true }}
run: ./gradlew createMojmapPaperclipJar --stacktrace
- name: Upload Paperclip Jar
if: ${{ inputs.paperclip == true }}
uses: actions/upload-artifact@v4
with:
name: paperclip-turniptales
path: build/libs/paper-paperclip-*-mojmap.jar