Skip to content

Commit bde89f5

Browse files
committed
add a release that runs on tags
1 parent 14b82a1 commit bde89f5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,23 @@ jobs:
130130
name: dotnet-bindings
131131
path: |
132132
ffi/bindings/dotnet/nupkg/rodbus*.nupkg
133-
ffi/bindings/dotnet/nupkg/rodbus*.snupkg
133+
ffi/bindings/dotnet/nupkg/rodbus*.snupkg
134+
# Create Github Release
135+
release:
136+
needs: [packaging]
137+
runs-on: ubuntu-latest
138+
if: startsWith(github.ref, 'refs/tags/')
139+
steps:
140+
- name: Download all artifacts
141+
uses: actions/download-artifact@v3
142+
with:
143+
path: artifacts
144+
- name: Create GitHub release
145+
uses: softprops/action-gh-release@v1
146+
with:
147+
draft: true
148+
files: |
149+
artifacts/*
150+
artifacts/**/*
151+
env:
152+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)