Skip to content

Commit b22cebd

Browse files
committed
Automatically create draft releases.
1 parent 09887f3 commit b22cebd

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,16 @@ jobs:
8181
--no-symbols
8282
env:
8383
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
84+
85+
- name: Create Release
86+
uses: ncipollo/release-action@v1
87+
#url: https://github.com/ncipollo/release-action
88+
if: startsWith(github.ref, 'refs/tags/release/')
89+
with:
90+
name: ${{ steps.stamp.outputs.version }}
91+
prerelease: ${{ contains('-', steps.stamp.outputs.version) }}
92+
draft: true
93+
bodyFile: CHANGES.md
94+
artifacts: ${{ runner.temp }}/dist/*nupkg
95+
artifactErrorsFailBuild: true
96+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)