Skip to content

Commit

Permalink
build: push latest version in publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
R-unic committed Jul 16, 2024
1 parent 0ce1225 commit 78e5745
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
- 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"
1 change: 0 additions & 1 deletion RobloxCS/CodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ private void WriteFooter()
{
if (!_tree.FilePath.EndsWith(".client.cs") && !_tree.FilePath.EndsWith(".server.cs"))
{
WriteLine();
WriteLine("return {}");
}
}
Expand Down

0 comments on commit 78e5745

Please sign in to comment.