From b9c5b13236f1091698a544596d749b7fbb907faa Mon Sep 17 00:00:00 2001
From: zznty <94796179+zznty@users.noreply.github.com>
Date: Fri, 7 Oct 2022 23:45:04 +0700
Subject: [PATCH] might work
---
.github/workflows/se.yml | 22 +++++++------------
...ineersDedicated.ReferenceAssemblies.nuspec | 2 ++
2 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/.github/workflows/se.yml b/.github/workflows/se.yml
index 7bd87dd..325cfa3 100644
--- a/.github/workflows/se.yml
+++ b/.github/workflows/se.yml
@@ -2,10 +2,11 @@ name: Se Dedicated Package
on:
workflow_dispatch:
- version:
- description: 'Game version string'
- required: true
- type: string
+ inputs:
+ version:
+ description: 'Game version string'
+ required: true
+ type: string
permissions:
packages: write
@@ -20,11 +21,9 @@ jobs:
with:
dotnet-version: '6.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
+ 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 DepotDownloader.dll -app 298740 -depot 298741 -os windows -dir . -filelist dedi_dlls_list.txt
- - name: Install Nuget CLI
- run: sudo apt-get install -y nuget
+ run: dotnet ./tool/DepotDownloader.dll -app 298740 -depot 298741 -os windows -dir . -filelist dedi_dlls_list.txt
- name: Prepare folder structure
run: mkdir -p ./nuget/lib/net48
- name: Copy binaries
@@ -32,9 +31,4 @@ jobs:
- name: Create Nuget Package
run: nuget pack specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec -BasePath ./nuget -Version ${{ inputs.version }} -NonInteractive -NoPackageAnalysis -OutputFileNamesWithoutVersion
- name: Push Nuget Package
- uses: tanaka-takayoshi/nuget-publish-to-github-packages-action@v2.1
- with:
- nupkg-path: './SpaceEngineersDedicated.ReferenceAssemblies.nupkg'
- repo-owner: ${{ github.repository_owner }}
- gh-user: ${{ github.actor }}
- token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+ run: dotnet nuget push ./SpaceEngineersDedicated.ReferenceAssemblies.nupkg --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
diff --git a/specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec b/specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec
index 698c1f2..20e248b 100644
--- a/specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec
+++ b/specs/SpaceEngineersDedicated.ReferenceAssemblies.nuspec
@@ -7,6 +7,8 @@
zznty
KSH
false
+ Space Engineers Dedicated Reference Assemblies
+