File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 58
58
if defined SUFFIX (nuget pack %NUSPECPATH% -build -Suffix %SUFFIX% -Prop Configuration=Release -OutputDirectory "D:\\package\\")else (nuget pack %NUSPECPATH% -build -Prop Configuration=Release -OutputDirectory "D:\\package\\")
59
59
60
60
- name : nuget publish
61
- run : nuget push D:\package\github_release_nuget_workflow.%TAG_NAME%.nupkg ${{secrets.NUGET_TOKEN}} -Source https://api.nuget.org/v3/index.json
61
+ run : nuget push D:\package\%REPO_NAME%.%TAG_NAME%.nupkg ${{secrets.NUGET_TOKEN}} -Source https://api.nuget.org/v3/index.json
62
+ env :
63
+ REPO_NAME : ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change 29
29
30
30
### Prerequisites
31
31
32
- - GitHub project secret named NUGET_TOKEN with a valid NuGet API key is set
32
+ - GitHub project secret named NUGET_TOKEN with a valid NuGet API key is set
33
+ - Github repository name must match the name of the library project
33
34
- AssemblyVersion of the library matches the GitHub Release version tag
34
35
Rules: ** MAJOR.MINOR.PATCH must match**
35
36
Example: ** AssemblyVersion: 0.1.1**
You can’t perform that action at this time.
0 commit comments