From 78e5745c49a3ab7925b14053e9b79628632497c2 Mon Sep 17 00:00:00 2001 From: R-unic Date: Tue, 16 Jul 2024 14:08:12 -0400 Subject: [PATCH] build: push latest version in publish workflow --- .github/workflows/publish.yml | 6 ++++-- RobloxCS/CodeGenerator.cs | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31ec261..7fcfeb2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -24,5 +24,7 @@ jobs: - name: Package the project run: dotnet pack --configuration Release - - name: Publish the package - run: dotnet nuget push "RobloxCS/bin/Release/roblox-cs.1.0.0.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" \ No newline at end of file + - name: Find and publish the package + run: | + PACKAGE_PATH=$(find . -name "*.nupkg" | head -n 1) + dotnet nuget push "$PACKAGE_PATH" --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" \ No newline at end of file diff --git a/RobloxCS/CodeGenerator.cs b/RobloxCS/CodeGenerator.cs index 9a0e1fe..c723fe9 100644 --- a/RobloxCS/CodeGenerator.cs +++ b/RobloxCS/CodeGenerator.cs @@ -96,7 +96,6 @@ private void WriteFooter() { if (!_tree.FilePath.EndsWith(".client.cs") && !_tree.FilePath.EndsWith(".server.cs")) { - WriteLine(); WriteLine("return {}"); } }