2024-06-08 22:45:07 +02:00
|
|
|
on:
|
2024-06-08 22:47:42 +02:00
|
|
|
workflow_dispatch:
|
2024-06-08 22:45:07 +02:00
|
|
|
push:
|
|
|
|
paths:
|
2024-06-08 22:58:38 +02:00
|
|
|
- "Client/**"
|
2024-06-08 22:45:07 +02:00
|
|
|
|
|
|
|
|
2024-06-08 00:25:51 +02:00
|
|
|
jobs:
|
2024-06-08 13:09:08 +02:00
|
|
|
make:
|
2024-06-08 13:34:13 +02:00
|
|
|
name: Build BaseBand DSM & Broadway
|
2024-06-08 00:25:51 +02:00
|
|
|
|
|
|
|
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
|
2024-06-08 22:45:07 +02:00
|
|
|
run: ./gradlew --no-daemon Client:build Client:proguard Client:proguardRelease
|
2024-06-08 13:34:13 +02:00
|
|
|
- name: Upload DSM
|
2024-06-08 00:25:51 +02:00
|
|
|
uses: forgejo/upload-artifact@v4
|
|
|
|
with:
|
2024-06-08 13:09:08 +02:00
|
|
|
name: BaseBand-DSM.jar
|
|
|
|
path: Client/build/libs/BaseBand-DSM.jar
|
2024-06-08 13:34:13 +02:00
|
|
|
- name: Upload Obfuscated DSM
|
2024-06-08 13:09:08 +02:00
|
|
|
uses: forgejo/upload-artifact@v4
|
|
|
|
with:
|
2024-06-08 23:16:45 +02:00
|
|
|
name: BaseBand-DSM-Standalone.jar
|
2024-06-08 13:30:51 +02:00
|
|
|
path: Client/build/proguard/BaseBand-DSM.jar
|
2024-06-08 22:45:07 +02:00
|
|
|
- name: Upload Broadway
|
|
|
|
uses: forgejo/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: BaseBand-Broadway.jar
|
|
|
|
path: Client/build/proguard/BaseBand-Broadway.jar
|
2024-06-09 00:07:05 +02:00
|
|
|
- name: Release to server
|
|
|
|
if: github.ref == 'refs/heads/release'
|
2024-06-09 00:28:32 +02:00
|
|
|
env:
|
|
|
|
GPG_PRIVATEKEY: ${{ secrets.GPG_PRIVATEKEY }}
|
2024-06-09 00:07:05 +02:00
|
|
|
run: bash push_broadway.sh
|
|
|
|
|