File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 11name : patch
22
3- on : workflow_dispatch
4-
5- # on:
6- # schedule:
3+ on :
4+ workflow_dispatch
5+ # schedule:
76 # - cron: "0 13 * * 1"
87
98jobs :
4847 - run : |
4948 git commit -am "Test ${{env.newTag}}"
5049 git push
51- - run : git log ${{needs.setup-outputs.outputs.currentTag}}..master --format=format:'- [%s](https://github.com/TiLied/CSharpToJavaScript/commit/%H)%n' --output=./realease .txt
50+ - run : git log ${{needs.setup-outputs.outputs.currentTag}}..master --format=format:'- [%s](https://github.com/TiLied/CSharpToJavaScript/commit/%H)%n' --output=./release .txt
5251 - name : Create Release
5352 id : create_release
5453 uses : actions/create-release@v1
@@ -57,12 +56,19 @@ jobs:
5756 with :
5857 tag_name : ${{ env.newTag }}
5958 release_name : ${{ env.newTag }}
60- body_path : ./realease .txt
61- draft : true
62- prerelease : true
59+ body_path : ./release .txt
60+ draft : false
61+ prerelease : false
6362 # update release notes in csproj
64- # build nuget package
65- # upload
63+ - name : Setup .NET
64+ uses : actions/setup-dotnet@v1
65+ with :
66+ dotnet-version : 10.0.x
67+ - name : Generate NuGet package
68+ run : dotnet pack --configuration Release --output packages
69+ - name : Publish NuGet package
70+ # ADD API KEY!!!!
71+ run : dotnet nuget push packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
6672 - name : Environments
6773 run : |
6874 echo $newTag
You can’t perform that action at this time.
0 commit comments