Added process for workflows in Github Actions

This commit is contained in:
4drian3d 2021-05-02 11:34:23 -05:00 committed by GitHub
parent bc4a8ac344
commit 1e0c94c4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

32
.github/workflows/flamecord-build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: Flamecord Maven Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11, 16]
steps:
- uses: actions/checkout@v2
- name: Setup JAVA ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
architecture: x64
- name: Build Flamecord
run: |
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
scripts/build.sh --jar
- name: Upload Flamecord
uses: actions/upload-artifact@v2
with:
name: Flamecord-JDK${{ matrix.java }}
path: Travertine-Proxy/bootstrap/target/Travertine.jar