2023-03-14 08:16:03 -04:00
|
|
|
name: Deploy
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2024-11-27 11:32:12 -05:00
|
|
|
- 'feature/**'
|
2023-03-14 08:16:03 -04:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-09-21 14:37:30 -04:00
|
|
|
- name: Checkout repository
|
|
|
|
# See https://github.com/actions/checkout/commits
|
|
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
|
|
|
|
|
2023-12-19 13:01:53 -05:00
|
|
|
- name: Validate Gradle wrapper
|
|
|
|
# See https://github.com/gradle/wrapper-validation-action/commits
|
|
|
|
uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b
|
|
|
|
|
2023-12-15 17:34:05 -05:00
|
|
|
- name: Set up JDK 17
|
2023-09-21 14:37:30 -04:00
|
|
|
# See https://github.com/actions/setup-java/commits
|
|
|
|
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
|
2023-03-14 08:16:03 -04:00
|
|
|
with:
|
2023-12-15 17:34:05 -05:00
|
|
|
java-version: 17
|
2023-03-14 08:16:03 -04:00
|
|
|
distribution: temurin
|
2023-09-21 14:37:30 -04:00
|
|
|
|
2023-12-19 13:01:53 -05:00
|
|
|
- name: Publish to Maven Repository
|
2024-11-27 11:10:39 -05:00
|
|
|
if: ${{ success() && github.repository == 'GeyserMC/MCProtocolLib' }}
|
2023-12-19 13:01:53 -05:00
|
|
|
uses: gradle/gradle-build-action@3bfe3a46584a206fb8361cdedd0647b0c4204232
|
2023-03-14 08:49:34 -04:00
|
|
|
env:
|
2024-01-11 12:21:23 -05:00
|
|
|
ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }}
|
|
|
|
ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }}
|
2023-12-19 13:01:53 -05:00
|
|
|
with:
|
|
|
|
arguments: publish
|