25 lines
659 B
YAML
25 lines
659 B
YAML
|
on:
|
||
|
- push
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
name: Build the server
|
||
|
runs-on: 'docker'
|
||
|
container:
|
||
|
node:current-alpine
|
||
|
steps:
|
||
|
- run: apk add git openjdk21-jdk
|
||
|
- run: corepack enable
|
||
|
- uses: actions/checkout@v3
|
||
|
- run: corepack install
|
||
|
working-directory: frontend
|
||
|
- run: pnpm install --frozen-lockfile
|
||
|
working-directory: frontend
|
||
|
- run: pnpm run build
|
||
|
working-directory: frontend
|
||
|
- run: ./gradlew --no-daemon bootJar
|
||
|
- run: mv build/libs/fileserver*.jar fileserver.jar
|
||
|
- uses: actions/upload-artifact@v3
|
||
|
with:
|
||
|
name: fileserver.jar
|
||
|
path: fileserver.jar
|