Fix publish workflow: use nuget pack for .nuspec files and push to GitHub Packages#503
Fix publish workflow: use nuget pack for .nuspec files and push to GitHub Packages#503
Conversation
Agent-Logs-Url: https://github.com/dadhi/FastExpressionCompiler/sessions/bf6615b5-5608-4aad-8daa-dd48bfa40acb Co-authored-by: dadhi <39516+dadhi@users.noreply.github.com>
dadhi
left a comment
There was a problem hiding this comment.
What are the steps to set the secrets such as secrets.GITHUB_TOKEN on gh? Where do I get GH token? Can you add a comment to yml describing those dtrps in focused/tech words?
…NUGET_API_KEY setup Agent-Logs-Url: https://github.com/dadhi/FastExpressionCompiler/sessions/15fdb866-55dd-4b04-8aaa-b43dc6431c81 Co-authored-by: dadhi <39516+dadhi@users.noreply.github.com>
Added inline comments to the workflow file in commit
These steps are now documented directly in the YAML comments above the jobs section. |
The publish GitHub Actions workflow was non-functional: it used
dotnet packon standalone.nuspecfiles (unsupported), had broken VERSION extraction, and the push steps were commented out entirely.Changes
sudo apt-get install -y nugetstep; classic.nuspecpacking requires the NuGet CLI, notdotnet packdotnet pack→nuget pack— Pack each.nuspecwith version override via-Version $VERSION -NonInteractivearrTag=(${GITHUB_REF//\// })+${VERSION//v}(strips allvchars) with${GITHUB_REF_NAME#v}(strips leadingvonly)https://nuget.pkg.github.com/dadhi/index.jsonas a source authenticated viaGITHUB_TOKEN, then pushes all packed.nupkgfilesNUGET_API_KEYrepository secret with--skip-duplicate