mirror of
https://github.com/GeyserMC/Floodgate.git
synced 2025-12-27 18:59:05 +00:00
Switch to centralized GitHub actions (#516)
* Switch to centralized GitHub actions * Build number is in env for PR
This commit is contained in:
22
.github/workflows/pullrequest.yml
vendored
22
.github/workflows/pullrequest.yml
vendored
@@ -14,31 +14,33 @@ jobs:
|
||||
|
||||
- name: Checkout repository and submodules
|
||||
# See https://github.com/actions/checkout/commits
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Validate Gradle Wrapper
|
||||
# See https://github.com/gradle/wrapper-validation-action/commits
|
||||
uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1
|
||||
uses: gradle/actions/wrapper-validation@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
|
||||
|
||||
- name: Set up JDK 17
|
||||
- name: Setup Java
|
||||
# See https://github.com/actions/setup-java/commits
|
||||
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
|
||||
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- name: Build Floodgate
|
||||
- name: Setup Gradle
|
||||
# See https://github.com/gradle/actions/commits
|
||||
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0
|
||||
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43 # v3.3.2
|
||||
with:
|
||||
arguments: build
|
||||
cache-read-only: true
|
||||
|
||||
- name: Build Floodgate
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Archive artifacts (Floodgate Bungee)
|
||||
# See https://github.com/actions/upload-artifact/commits
|
||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
|
||||
if: success()
|
||||
with:
|
||||
name: Floodgate Bungee
|
||||
@@ -46,7 +48,7 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Archive artifacts (Floodgate Spigot)
|
||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
||||
if: success()
|
||||
with:
|
||||
name: Floodgate Spigot
|
||||
@@ -54,7 +56,7 @@ jobs:
|
||||
if-no-files-found: error
|
||||
|
||||
- name: Archive artifacts (Floodgate Velocity)
|
||||
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
|
||||
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808
|
||||
if: success()
|
||||
with:
|
||||
name: Floodgate Velocity
|
||||
|
||||
Reference in New Issue
Block a user