2022-07-15 06:11:44 +00:00
|
|
|
# This workflow will build a Java project with Maven
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
|
|
|
|
|
|
name: RedisBungee Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-04-28 19:18:01 +00:00
|
|
|
branches: [ main ]
|
2022-07-15 06:11:44 +00:00
|
|
|
pull_request:
|
2024-04-28 19:18:01 +00:00
|
|
|
branches: [ main ]
|
2022-07-15 06:11:44 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-09-10 18:05:33 +00:00
|
|
|
- name: Set up JDK 17
|
2022-07-15 06:11:44 +00:00
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
2023-09-10 18:05:33 +00:00
|
|
|
java-version: '17'
|
2022-07-15 06:11:44 +00:00
|
|
|
distribution: 'adopt'
|
2023-03-23 11:42:59 +00:00
|
|
|
- name: Build with gradle
|
|
|
|
run: ./gradlew shadowJar
|
2022-07-19 00:30:39 +00:00
|
|
|
- name: Upload Bungee
|
2022-07-15 06:11:44 +00:00
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
# Artifact name
|
2022-07-15 06:13:08 +00:00
|
|
|
name: RedisBungee-Bungee
|
2022-07-15 06:11:44 +00:00
|
|
|
# Destination path
|
2023-03-23 11:42:59 +00:00
|
|
|
path: RedisBungee-Bungee/build/libs/*
|
2022-07-19 00:30:39 +00:00
|
|
|
- name: Upload Velocity
|
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
name: RedisBungee-Velocity
|
2023-03-23 11:42:59 +00:00
|
|
|
path: RedisBungee-Velocity/build/libs/*
|
2022-07-19 00:30:39 +00:00
|
|
|
- name: Upload API
|
|
|
|
uses: actions/upload-artifact@v2.2.3
|
|
|
|
with:
|
|
|
|
name: RedisBungee-API
|
2023-03-23 11:42:59 +00:00
|
|
|
path: RedisBungee-API/build/libs/*
|