fix release pushing and some artifacts
This commit is contained in:
parent
3ee013a8ab
commit
fb626cc082
7 changed files with 41 additions and 9 deletions
|
@ -2,6 +2,7 @@ on:
|
|||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- ".forgejo/workflows/build-client.yml"
|
||||
- "Client/**"
|
||||
|
||||
|
||||
|
@ -22,7 +23,10 @@ jobs:
|
|||
- name: Initialize Gradle
|
||||
uses: https://github.com/gradle/actions/setup-gradle@v3
|
||||
- name: Build
|
||||
run: ./gradlew --no-daemon Client:build Client:proguard Client:proguardRelease
|
||||
run: ./gradlew Client:build Client:proguard
|
||||
- name: Build Broadway
|
||||
if: github.ref == 'refs/heads/release'
|
||||
run: ./gradlew Client:proguardRelease
|
||||
- name: Upload DSM
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
|
@ -33,7 +37,9 @@ jobs:
|
|||
with:
|
||||
name: BaseBand-DSM-Standalone.jar
|
||||
path: Client/build/proguard/BaseBand-DSM.jar
|
||||
|
||||
- name: Upload Broadway
|
||||
if: github.ref == 'refs/heads/release'
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: BaseBand-Broadway.jar
|
||||
|
@ -42,5 +48,5 @@ jobs:
|
|||
if: github.ref == 'refs/heads/release'
|
||||
env:
|
||||
GPG_PRIVATEKEY: ${{ secrets.GPG_PRIVATEKEY }}
|
||||
run: bash push_broadway.sh
|
||||
run: bash push_file.sh Client/build/proguard/BaseBand-Broadway.jar 3849
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ on:
|
|||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- ".forgejo/workflows/build-loader.yml"
|
||||
- "Loader/**"
|
||||
#- "Installer/**"
|
||||
|
||||
|
@ -28,9 +29,14 @@ jobs:
|
|||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: BaseBand-open.jar
|
||||
path: Client/build/libs/BaseBand-Loader.jar
|
||||
path: Loader/build/libs/BaseBand-Loader.jar
|
||||
- name: Upload Obfuscated Loader
|
||||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: BaseBand.jar
|
||||
path: Client/build/proguard/BaseBand-Loader.jar
|
||||
path: Loader/build/proguard/BaseBand-Loader.jar
|
||||
- name: Release to server
|
||||
if: github.ref == 'refs/heads/release'
|
||||
env:
|
||||
GPG_PRIVATEKEY: ${{ secrets.GPG_PRIVATEKEY }}
|
||||
run: bash push_file.sh Loader/build/proguard/BaseBand-Loader.jar 3848
|
||||
|
|
|
@ -2,6 +2,7 @@ on:
|
|||
workflow_dispatch:
|
||||
push:
|
||||
paths:
|
||||
- ".forgejo/workflows/build-loader.yml"
|
||||
- "Server/**"
|
||||
|
||||
|
||||
|
@ -27,4 +28,9 @@ jobs:
|
|||
uses: forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: BaseBand-Server.jar
|
||||
path: Client/build/libs/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
|
||||
|
|
|
@ -126,6 +126,9 @@ jar {
|
|||
} {
|
||||
exclude("mcmod.info")
|
||||
}
|
||||
|
||||
baseName = 'BaseBand'
|
||||
version = 'Loader'
|
||||
}
|
||||
|
||||
def proguardBuildDir = "${buildDir}/proguard"
|
||||
|
|
|
@ -1,9 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
while true ; do
|
||||
nc -lp 3849 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Broadway.jar.tmp 2> /dev/stdout \
|
||||
nc -lp 3849 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Broadway.jar.tmp 2>> baseband_receiver.log \
|
||||
|| continue
|
||||
|
||||
mv BaseBand-Broadway.jar.tmp BaseBand-Broadway.jar
|
||||
sleep 5
|
||||
done
|
||||
done & disown
|
||||
while true ; do
|
||||
nc -lp 3848 | gpg -d --assert-signer B0F943A1A93444BFA8C030CCC36DCC0986B8748F > BaseBand-Loader.jar.tmp 2> baseband_receiver.log \
|
||||
|| continue
|
||||
|
||||
mv BaseBand-Loader.jar.tmp BaseBand-Loader.jar
|
||||
sleep 5
|
||||
done & disown
|
|
@ -34,4 +34,6 @@ jar {
|
|||
'Main-Class': 'dev.baseband.server.Main'
|
||||
)
|
||||
}
|
||||
baseName = 'BaseBand'
|
||||
version = 'Server'
|
||||
}
|
|
@ -2,8 +2,10 @@
|
|||
|
||||
# DO NOT RUN THIS MANUALLY. PUSH TO RELEASE INSTEAD. ( <- unless there is an emergency.)
|
||||
|
||||
wget https://data.tudbut.de/nc
|
||||
chmod a+rx nc
|
||||
echo "$GPG_PRIVATEKEY" | gpg --import
|
||||
(
|
||||
gpg -sear BaseBand -u BaseBand < Client/build/proguard/BaseBand-Broadway.jar
|
||||
gpg -sear BaseBand -u BaseBand < $1
|
||||
sleep 1
|
||||
) | nc -c $BB_HOST 3849
|
||||
) | ./nc -c $BB_HOST $2
|
Loading…
Add table
Reference in a new issue