BaseBandRewrite/.forgejo/workflows/build-server.yml
TudbuT fb626cc082
Some checks failed
/ Build BaseBand Server (push) Waiting to run
/ Build BaseBand DSM & Broadway (push) Failing after 10m15s
/ Build BaseBand Loader (push) Failing after 7m1s
fix release pushing and some artifacts
2024-06-09 01:03:11 +02:00

36 lines
923 B
YAML

on:
workflow_dispatch:
push:
paths:
- ".forgejo/workflows/build-loader.yml"
- "Server/**"
jobs:
make:
name: Build BaseBand Server
runs-on: 'docker'
steps:
- name: Setup Java
uses: https://github.com/actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 8
- name: Checkout
uses: actions/checkout@v4
- name: Initialize Gradle
uses: https://github.com/gradle/actions/setup-gradle@v3
- name: Build
run: ./gradlew --no-daemon Server:build
- name: Upload Server
uses: forgejo/upload-artifact@v4
with:
name: BaseBand-Server.jar
path: Server/build/libs/BaseBand-Server.jar
- name: Release to server
if: github.ref == 'refs/heads/release'
env:
GPG_PRIVATEKEY: ${{ secrets.GPG_PRIVATEKEY }}
run: bash push_file.sh Server/build/proguard/BaseBand-Server.jar 3847