mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Avoid building ReleaseNotes in .deb build
This commit is contained in:
@@ -1224,6 +1224,7 @@ jobs:
|
||||
|
||||
build-deb:
|
||||
name: Build .deb Package # Can't do i386 due to https://github.com/dotnet/core/issues/4595
|
||||
needs: build-releasenotes
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TGS_TELEMETRY_KEY_FILE: /tmp/tgs_telemetry_key.txt
|
||||
@@ -1260,6 +1261,12 @@ jobs:
|
||||
sudo ln -s $DOTNET_PATH /usr/bin/dotnet
|
||||
echo "New dotnet path should be $DOTNET_PATH"
|
||||
|
||||
- name: Retrieve ReleaseNotes Binaries
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: release_notes_bins
|
||||
path: release_notes_bins
|
||||
|
||||
- name: Checkout (Branch)
|
||||
uses: actions/checkout@v4
|
||||
if: github.event_name == 'push' || github.event_name == 'schedule'
|
||||
@@ -1278,11 +1285,14 @@ jobs:
|
||||
|
||||
- name: Execute Build Script (Unsigned)
|
||||
if: (!(github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && github.event.ref == 'refs/heads/master'))
|
||||
env:
|
||||
RELEASE_NOTES_DLL_PATH: release_notes_bins/Tgstation.Server.ReleaseNotes.dll
|
||||
run: sudo -E build/package/deb/build_package.sh
|
||||
|
||||
- name: Execute Build Script (Signed)
|
||||
if: (github.event_name == 'push' && contains(github.event.head_commit.message, '[TGSDeploy]') && github.event.ref == 'refs/heads/master')
|
||||
env:
|
||||
RELEASE_NOTES_DLL_PATH: release_notes_bins/Tgstation.Server.ReleaseNotes.dll
|
||||
PACKAGING_KEYGRIP: ${{ vars.PACKAGING_KEYGRIP }}
|
||||
run: sudo -E build/package/deb/build_package.sh
|
||||
|
||||
|
||||
@@ -59,7 +59,11 @@ dh_make -p tgstation-server_$TGS_VERSION -y --createorig -s
|
||||
rm -f debian/README* debian/changelog debian/*.ex debian/upstream/*.ex
|
||||
|
||||
pushd ..
|
||||
dotnet run -c Release -p:TGS_HOST_NO_WEBPANEL=true --project tools/Tgstation.Server.ReleaseNotes $TGS_VERSION --debian packaging/debian/changelog $CURRENT_COMMIT
|
||||
if [[ -z "$RELEASE_NOTES_DLL_PATH" ]]; then
|
||||
dotnet run -c Release -p:TGS_HOST_NO_WEBPANEL=true --project tools/Tgstation.Server.ReleaseNotes $TGS_VERSION --debian packaging/debian/changelog $CURRENT_COMMIT
|
||||
else
|
||||
dotnet $RELEASE_NOTES_DLL_PATH $TGS_VERSION --debian packaging/debian/changelog $CURRENT_COMMIT
|
||||
fi
|
||||
popd
|
||||
|
||||
cp -r build/package/deb/debian/* debian/
|
||||
|
||||
Reference in New Issue
Block a user