@@ -5,8 +5,8 @@ name: .NET Publish Nuget Package And Release
55
66on :
77 push :
8- # branches:
9- # - "**"
8+ branches :
9+ - " **"
1010 tags :
1111 - " v.[0-9]+.[0-9]+.[0-9]+"
1212 # pull_request:
@@ -46,29 +46,30 @@ jobs:
4646 run : dotnet build --no-restore -c Release /p:Version=$VERSION
4747
4848 - name : Pack nuget packages
49- run : dotnet pack --output nupkgs --no-restore --no-build /p:PackageVersion=$VERSION
50-
49+ run : dotnet pack --output nupkgs --no-restore --no-build /p:PackageVersion=$
5150 - name : Build TestApp
52- run : dotnet run --project src/ServiceFileCreator.TestApp/ -c Release
51+ run : |
52+ touch config/service_info.json
53+ dotnet run --project src/ServiceFileCreator.TestApp/ -c Release
5354
54- - name : upload nuget package to nuget.org
55- if : github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
56- run : dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
55+ # - name: upload nuget package to nuget.org
56+ # if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
57+ # run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
5758
58- - name : Add nuget source
59- run : dotnet nuget add source --username $USERNAME --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/$NAMESPACE/index.json"
59+ # - name: Add nuget source
60+ # run: dotnet nuget add source --username $USERNAME --password $GITHUB_TOKEN --store-password-in-clear-text --name github "https://nuget.pkg.github.com/$NAMESPACE/index.json"
6061
61- - name : Upload nuget package to github package
62- if : github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
63- run : dotnet nuget push nupkgs/*.nupkg --source "github" --skip-duplicate
62+ # - name: Upload nuget package to github package
63+ # if: github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
64+ # run: dotnet nuget push nupkgs/*.nupkg --source "github" --skip-duplicate
6465
65- - name : Publish Release
66- uses : " slord399/action-automatic-releases@v1.0.1"
67- with :
68- title : " Release v.${{ env.VERSION }}"
69- repo_token : " ${{ env.GITHUB_TOKEN }}"
70- automatic_release_tag : " v.${{ env.VERSION }}"
71- prerelease : false
72- files : |
73- nupkgs/*.nupkg
66+ # - name: Publish Release
67+ # uses: "slord399/action-automatic-releases@v1.0.1"
68+ # with:
69+ # title: "Release v.${{ env.VERSION }}"
70+ # repo_token: "${{ env.GITHUB_TOKEN }}"
71+ # automatic_release_tag: "v.${{ env.VERSION }}"
72+ # prerelease: false
73+ # files: |
74+ # nupkgs/*.nupkg
7475 config/*.json
0 commit comments