2024-04-20 01:47:00 +00:00
|
|
|
name: Process Pull Request
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
# Forbid access to secrets nor GH Token perms while building the PR
|
|
|
|
permissions: {}
|
|
|
|
secrets: {}
|
2024-05-28 07:11:05 +00:00
|
|
|
uses: GeyserMC/Geyser/.github/workflows/build-remote.yml@master
|
2024-04-20 01:47:00 +00:00
|
|
|
with:
|
|
|
|
repository: ${{ github.event.pull_request.head.repo.full_name }}
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
preview:
|
|
|
|
needs: [build]
|
|
|
|
if: >-
|
|
|
|
contains(github.event.pull_request.labels.*.name, 'PR: Needs Testing')
|
|
|
|
# Allow access to secrets if we are uploading a preview
|
|
|
|
secrets: inherit
|
2024-05-28 07:11:05 +00:00
|
|
|
uses: GeyserMC/actions/.github/workflows/upload-preview.yml@master
|
2024-04-20 01:47:00 +00:00
|
|
|
with:
|
|
|
|
build: ${{ github.run_number }}
|
2024-05-28 07:11:05 +00:00
|
|
|
version: pr.${{ github.event.pull_request.number }}
|
|
|
|
files: |
|
|
|
|
bungeecord:Geyser-BungeeCord.jar
|
|
|
|
fabric:Geyser-Fabric.jar
|
|
|
|
neoforge:Geyser-NeoForge.jar
|
|
|
|
spigot:Geyser-Spigot.jar
|
|
|
|
standalone:Geyser-Standalone.jar
|
|
|
|
velocity:Geyser-Velocity.jar
|
|
|
|
viaproxy:Geyser-ViaProxy.jar
|
|
|
|
project: geyserpreview
|
|
|
|
runId: ${{ github.run_id }}
|