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 {}"); } }