@@ -15,15 +15,15 @@ jobs:
1515 DOTNET_NOLOGO : true
1616 DOTNET_CLI_TELEMETRY_OPTOUT : true
1717 steps :
18- # - name: Check PR labels action step
19- # id: labelcheck
20- # uses: shioyang/check-pr-labels-on-push-action@v1.0.3
21- # with:
22- # github-token: ${{ secrets.GITHUB_TOKEN }}
23- # labels: '["create-release"]'
24- # - name: Continue only if the create-release label exists, fail otherwise.
25- # if: steps.labelcheck.outputs.result != 'true'
26- # run: exit 1
18+ - name : Check PR labels action step
19+ id : labelcheck
20+ uses : shioyang/check-pr-labels-on-push-action@v1.0.3
21+ with :
22+ github-token : ${{ secrets.GITHUB_TOKEN }}
23+ labels : ' ["create-release"]'
24+ - name : Continue only if the create-release label exists, fail otherwise.
25+ if : steps.labelcheck.outputs.result != 'true'
26+ run : exit 1
2727 - uses : actions/checkout@v2
2828 with :
2929 fetch-depth : 0 # Avoid shallow clone so nbgv can do its work.
@@ -36,15 +36,15 @@ jobs:
3636 with :
3737 repo-token : ${{ secrets.GITHUB_TOKEN }}
3838 tag : v${{ steps.nbgv.outputs.SimpleVersion }}
39- # - name: Build changelog
40- # id: build_changelog
41- # uses: mikepenz/release-changelog-builder-action@v1.7.1
42- # env:
43- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44- # with:
45- # failOnError: true
46- # configuration: "configs/configuration.json"
47- # toTag: v${{ steps.nbgv.outputs.SimpleVersion }}
39+ - name : Build changelog
40+ id : build_changelog
41+ uses : mikepenz/release-changelog-builder-action@v1.7.1
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ with :
45+ failOnError : true
46+ configuration : " configs/configuration.json"
47+ toTag : v${{ steps.nbgv.outputs.SimpleVersion }}
4848 - name : Setup .NET Core
4949 uses : actions/setup-dotnet@v1.7.2
5050 with :
@@ -56,18 +56,18 @@ jobs:
5656 run : dotnet build --configuration Release
5757 - name : Create the nuget package
5858 run : dotnet pack Daf.Core.Sql/Daf.Core.Sql.csproj --configuration Release --output Daf.Core.Sql/bin/Release/Publish
59- # - name: Publish to GitHub
60- # run: dotnet nuget push Daf.Core.Sql/bin/Release/Publish/**/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
61- # - name: Create release
62- # uses: softprops/action-gh-release@v1
63- # with:
64- # name: ${{ steps.nbgv.outputs.SimpleVersion }}
65- # tag_name: v${{ steps.nbgv.outputs.SimpleVersion }}
66- # body: ${{steps.build_changelog.outputs.changelog}}
67- # draft: false
68- # prerelease: false
69- # env:
70- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+ - name : Publish to GitHub
60+ run : dotnet nuget push Daf.Core.Sql/bin/Release/Publish/**/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
61+ - name : Create release
62+ uses : softprops/action-gh-release@v1
63+ with :
64+ name : ${{ steps.nbgv.outputs.SimpleVersion }}
65+ tag_name : v${{ steps.nbgv.outputs.SimpleVersion }}
66+ body : ${{steps.build_changelog.outputs.changelog}}
67+ draft : false
68+ prerelease : false
69+ env :
70+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7171 - name : Move latest MajorMinor version tag
7272 uses : EndBug/latest-tag@v1.4.0
7373 with :
0 commit comments