Skip to content

Snake Tails (#527)

Snake Tails (#527) #1

# Action to create easy to use servers for players to test things without compiling the entire repo
name: Create server bundle
concurrency:
group: publish
on:
push:
branches: [ master, staging, trying ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt-get install -y python3-paramiko python3-lxml
- uses: actions/[email protected]
with:
submodules: 'recursive'
- name: Setup .NET Core
uses: actions/[email protected]
with:
dotnet-version: 8.0.x
- name: Get Engine Tag
run: |
cd RobustToolbox
git fetch --depth=1
- name: Install dependencies
run: dotnet restore
- name: Build Packaging
run: dotnet build Content.Packaging --configuration Release --no-restore /m
- name: Package server
run: dotnet run --project Content.Packaging server --platform win-x64 --platform linux-x64 --platform osx-x64
- name: Package client
run: dotnet run --project Content.Packaging client --no-wipe-release
- name: Bundle client
run: |
pushd release
mkdir linux
mv SS14.Server_linux-x64.zip linux
pushd linux
unzip SS14.Server_linux-x64.zip
rm SS14.Server_linux-x64.zip
cp ../SS14.Client.zip Content.Client.zip
popd
mkdir osx
mv SS14.Server_osx-x64.zip osx
pushd osx
unzip SS14.Server_osx-x64.zip
rm SS14.Server_osx-x64.zip
cp ../SS14.Client.zip Content.Client.zip
popd
mkdir win
mv SS14.Server_win-x64.zip win
pushd win
unzip SS14.Server_win-x64.zip
rm SS14.Server_win-x64.zip
cp ../SS14.Client.zip Content.Client.zip
popd
popd
- uses: actions/upload-artifact@v4
with:
name: Cosmatic.ServerBundle-linux-x64.zip
path: release/linux
- uses: actions/upload-artifact@v4
with:
name: Cosmatic.ServerBundle-osx-x64.zip
path: release/osx
- uses: actions/upload-artifact@v4
with:
name: Cosmatic.ServerBundle-windows-x64.zip
path: release/win