Update actions to node20 (#4456)

This commit is contained in:
Shanwer 2024-03-05 06:37:45 +08:00 committed by GitHub
parent 79154f3d0c
commit 621dc6f89a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 26 deletions

View file

@ -20,72 +20,72 @@ jobs:
steps: steps:
- name: Checkout repository and submodules - name: Checkout repository and submodules
# See https://github.com/actions/checkout/commits # See https://github.com/actions/checkout/commits
uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with: with:
submodules: recursive submodules: recursive
- name: Validate Gradle Wrapper - name: Validate Gradle Wrapper
# See https://github.com/gradle/wrapper-validation-action/commits # See https://github.com/gradle/wrapper-validation-action/commits
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1
# See https://github.com/actions/setup-java/commits # See https://github.com/actions/setup-java/commits
- uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758 - uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with: with:
java-version: 17 java-version: 17
distribution: temurin distribution: temurin
- name: Build - name: Build
# See https://github.com/gradle/gradle-build-action/commits # See https://github.com/gradle/gradle-build-action/commits
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 from https://github.com/gradle/actions/commits
with: with:
arguments: build arguments: build
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
- name: Archive artifacts (Geyser Fabric) - name: Archive artifacts (Geyser Fabric)
# See https://github.com/actions/upload-artifact/commits # See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: success() if: success()
with: with:
name: Geyser Fabric name: Geyser Fabric
path: bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar path: bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser NeoForge) - name: Archive artifacts (Geyser NeoForge)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser NeoForge name: Geyser NeoForge
path: bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar path: bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Standalone) - name: Archive artifacts (Geyser Standalone)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Standalone name: Geyser Standalone
path: bootstrap/standalone/build/libs/Geyser-Standalone.jar path: bootstrap/standalone/build/libs/Geyser-Standalone.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Spigot) - name: Archive artifacts (Geyser Spigot)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Spigot name: Geyser Spigot
path: bootstrap/spigot/build/libs/Geyser-Spigot.jar path: bootstrap/spigot/build/libs/Geyser-Spigot.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser BungeeCord) - name: Archive artifacts (Geyser BungeeCord)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser BungeeCord name: Geyser BungeeCord
path: bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar path: bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Velocity) - name: Archive artifacts (Geyser Velocity)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Velocity name: Geyser Velocity
path: bootstrap/velocity/build/libs/Geyser-Velocity.jar path: bootstrap/velocity/build/libs/Geyser-Velocity.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser ViaProxy) - name: Archive artifacts (Geyser ViaProxy)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser ViaProxy name: Geyser ViaProxy
@ -94,7 +94,7 @@ jobs:
- name: Publish to Maven Repository - name: Publish to Maven Repository
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }}
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
env: env:
ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }} ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }}
ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }} ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }}
@ -127,7 +127,7 @@ jobs:
rsync -P -e "ssh -o StrictHostKeyChecking=no -i id_ecdsa" metadata.json $DOWNLOADS_USERNAME@$DOWNLOADS_SERVER_IP:~/uploads/$project/$GITHUB_RUN_NUMBER/ rsync -P -e "ssh -o StrictHostKeyChecking=no -i id_ecdsa" metadata.json $DOWNLOADS_USERNAME@$DOWNLOADS_SERVER_IP:~/uploads/$project/$GITHUB_RUN_NUMBER/
- name: Publish to Modrinth (Fabric) - name: Publish to Modrinth (Fabric)
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }}
env: env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
@ -136,7 +136,7 @@ jobs:
gradle-home-cache-cleanup: true gradle-home-cache-cleanup: true
- name: Publish to Modrinth (NeoForge) - name: Publish to Modrinth (NeoForge)
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }}
env: env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

View file

@ -9,7 +9,7 @@ jobs:
steps: steps:
- name: Set up JDK 17 - name: Set up JDK 17
# See https://github.com/actions/setup-java/commits # See https://github.com/actions/setup-java/commits
uses: actions/setup-java@4075bfc1b51bf22876335ae1cd589602d60d8758 uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with: with:
java-version: 17 java-version: 17
distribution: temurin distribution: temurin
@ -35,67 +35,67 @@ jobs:
- name: Checkout repository and submodules - name: Checkout repository and submodules
# See https://github.com/actions/checkout/commits # See https://github.com/actions/checkout/commits
uses: actions/checkout@72f2cec99f417b1a1c5e2e88945068983b7965f9 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with: with:
submodules: recursive submodules: recursive
path: geyser path: geyser
- name: Validate Gradle Wrapper - name: Validate Gradle Wrapper
# See https://github.com/gradle/wrapper-validation-action/commits # See https://github.com/gradle/wrapper-validation-action/commits
uses: gradle/wrapper-validation-action@56b90f209b02bf6d1deae490e9ef18b21a389cd4 uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # v2.1.1
- name: Build Geyser - name: Build Geyser
# See https://github.com/gradle/gradle-build-action/commits # See https://github.com/gradle/gradle-build-action/commits
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232 uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 from https://github.com/gradle/actions/commits
with: with:
arguments: build arguments: build
build-root-directory: geyser build-root-directory: geyser
- name: Archive artifacts (Geyser Fabric) - name: Archive artifacts (Geyser Fabric)
# See https://github.com/actions/upload-artifact/commits # See https://github.com/actions/upload-artifact/commits
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
if: success() if: success()
with: with:
name: Geyser Fabric name: Geyser Fabric
path: geyser/bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar path: geyser/bootstrap/mod/fabric/build/libs/Geyser-Fabric.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser NeoForge) - name: Archive artifacts (Geyser NeoForge)
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser NeoForge name: Geyser NeoForge
path: geyser/bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar path: geyser/bootstrap/mod/neoforge/build/libs/Geyser-NeoForge.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Standalone) - name: Archive artifacts (Geyser Standalone)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Standalone name: Geyser Standalone
path: geyser/bootstrap/standalone/build/libs/Geyser-Standalone.jar path: geyser/bootstrap/standalone/build/libs/Geyser-Standalone.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Spigot) - name: Archive artifacts (Geyser Spigot)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Spigot name: Geyser Spigot
path: geyser/bootstrap/spigot/build/libs/Geyser-Spigot.jar path: geyser/bootstrap/spigot/build/libs/Geyser-Spigot.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser BungeeCord) - name: Archive artifacts (Geyser BungeeCord)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser BungeeCord name: Geyser BungeeCord
path: geyser/bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar path: geyser/bootstrap/bungeecord/build/libs/Geyser-BungeeCord.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser Velocity) - name: Archive artifacts (Geyser Velocity)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser Velocity name: Geyser Velocity
path: geyser/bootstrap/velocity/build/libs/Geyser-Velocity.jar path: geyser/bootstrap/velocity/build/libs/Geyser-Velocity.jar
if-no-files-found: error if-no-files-found: error
- name: Archive artifacts (Geyser ViaProxy) - name: Archive artifacts (Geyser ViaProxy)
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: success() if: success()
with: with:
name: Geyser ViaProxy name: Geyser ViaProxy