chore: add ci
This commit is contained in:
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
name: Build FancyBot
|
||||
on:
|
||||
- push
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
java:
|
||||
- 17
|
||||
os:
|
||||
- ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Validate gradle wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
- name: Setup jdk ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Make Gradle wrapper executable
|
||||
run: chmod +x ./gradlew
|
||||
- name: Build
|
||||
run: ./gradlew build
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: FancyBot
|
||||
path: |
|
||||
**/build/libs/*.jar
|
||||
Reference in New Issue
Block a user