Skip to content

Commit 7bcf7b3

Browse files
committed
Update pipeline to create github release on package update
[skip ci]
1 parent f7b5b27 commit 7bcf7b3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- name: Test
2424
run: dotnet test --no-restore --verbosity normal
2525
- name: Publish NuGet
26+
id: publish_nuget
2627
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
2728
uses: brandedoutcast/publish-nuget@v2.5.5
2829
with:
@@ -31,17 +32,18 @@ jobs:
3132
env:
3233
NUGET_KEY: ${{ secrets.NUGET_KEY }}
3334
- name: Create release
34-
if: success() && steps.publish_nuget.output.version != ''
35+
id: create_release
36+
if: success() && steps.publish_nuget.outputs.version != ''
3537
uses: actions/create-release@v1
3638
with:
37-
tag_name: ${{ steps.publish_nuget.output.version }}
38-
release_name: ${{ steps.publish_nuget.output.version }}
39+
tag_name: ${{ steps.publish_nuget.outputs.version }}
40+
release_name: ${{ steps.publish_nuget.outputs.version }}
3941
body: ""
4042
- name: Publish dotnet-json.exe
4143
if: success() && steps.publish_nuget.outputs.version != ''
4244
run: dotnet publish -c Release -o ./output --self-contained true -r win-x86 -p:PublishSingleFile=true -p:PublishTrimmed=true
4345
- name: Upload dotnet-json.exe release asset
44-
if: success() && steps.publish_nuget.output.version != ''
46+
if: success() && steps.publish_nuget.outputs.version != ''
4547
uses: actions/upload-release-asset@v1
4648
with:
4749
upload_url: ${{ steps.create_release.outputs.upload_url }}

0 commit comments

Comments
 (0)