This commit is contained in:
2024-06-22 19:58:05 +02:00
parent abfaf579cb
commit a0100949d3

38
.github/workflows/server.yml vendored Normal file
View File

@@ -0,0 +1,38 @@
name: Server
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install sudo for ACT
run: apt-get update && apt-get install -y sudo
if: env.ACT=='true'
- name: Install fuse
run: sudo apt-get update && sudo apt-get install -y fuse libfuse-dev
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: "21"
distribution: "zulu"
cache: maven
- name: Build with Gradle Wrapper
run: cd server && ./mvnw --batch-mode --update-snapshots verify
- run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v4
with:
name: Package
path: staging