2525 run : dotnet build --configuration Release --no-restore
2626 - name : Test
2727 run : dotnet test --no-build --verbosity normal --configuration Release
28- - name : " Build & test"
29- run : |
30- echo "done!"
31- git tag ${{ env.CURRENT_VERSION }}
32- git push origin --tags
33- pwd
3428
3529 deployRelease :
3630 if : github.ref == 'refs/heads/main'
@@ -48,24 +42,15 @@ jobs:
4842 run : dotnet build --configuration Release --no-restore
4943 - name : NugetPush
5044 run : |
51- dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
52- - uses : " marvinpinto/action-automatic-releases@latest"
53- with :
54- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
55- automatic_release_tag : ${{ env.CURRENT_VERSION }}
56- prerelease : false
57- title : " Release Build"
58- files : |
5945 ls ./GithubActionsHelloWorld/bin/Release
6046 dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
6147 - uses : " marvinpinto/action-automatic-releases@latest"
6248 with :
6349 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
64- automatic_release_tag : " latest-prerelease "
65- prerelease : true
66- title : " Prerelease Build "
50+ automatic_release_tag : " ${{ env.CURRENT_VERSION }} "
51+ prerelease : false
52+ title : " Release ${{ env.CURRENT_VERSION }} "
6753 files : |
68- LICENSE
6954 ./GithubActionsHelloWorld/bin/Release/*.nupkg
7055 ./GithubActionsHelloWorld/bin/Release/*.snupkg
7156
@@ -86,16 +71,14 @@ jobs:
8671 - name : NugetPush
8772 run : |
8873 ls ./GithubActionsHelloWorld/bin/Release
89- dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://apiint.nugettest.org/v3/index.json
9074 # dotnet nuget push ./GithubActionsHelloWorld/bin/Release/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_TOKEN}} --source https://api.nuget.org/v3/index.json
9175 - uses : " marvinpinto/action-automatic-releases@latest"
9276 with :
9377 repo_token : " ${{ secrets.GITHUB_TOKEN }}"
94- automatic_release_tag : " latest-prerelease "
78+ automatic_release_tag : " ${{ env.CURRENT_VERSION }} "
9579 prerelease : true
96- title : " Prerelease Build"
80+ title : " Prerelease Build ${{ env.CURRENT_VERSION }} "
9781 files : |
98- LICENSE
9982 ./GithubActionsHelloWorld/bin/Release/*.nupkg
10083 ./GithubActionsHelloWorld/bin/Release/*.snupkg
10184
0 commit comments