Files
se-torch-nuget/.github/workflows/se.yml
2023-02-17 12:04:43 +07:00

34 lines
1.4 KiB
YAML

name: Se Dedicated Package
on:
workflow_dispatch:
inputs:
version:
description: 'Game version string'
required: true
type: string
permissions:
packages: write
jobs:
Main:
name: Build Nuget Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Download Depot tool
run: wget https://github.com/SteamRE/DepotDownloader/releases/download/DepotDownloader_2.4.7/depotdownloader-2.4.7.zip -O tool.zip && 7z x tool.zip -o./tool && rm tool.zip
- name: Download Steam Dlls
run: dotnet ./tool/DepotDownloader.dll -app 298740 -depot 298741 -os windows -dir . -filelist dedi_dlls_list.txt -beta automatons-beta
- name: Prepare folder structure
run: mkdir -p ./nuget/lib/net48
- name: Copy binaries
run: cp ./DedicatedServer64/* ./nuget/lib/net48
- name: Create Nuget Package
run: nuget pack specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec -BasePath ./nuget -Version ${{ inputs.version }} -NonInteractive -NoPackageAnalysis -OutputFileNamesWithoutVersion
- name: Push Nuget Package
run: dotnet nuget push ./SpaceEngineersDedicated.ReferenceAssemblies.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }}