Skip to content

Commit b54ba0f

Browse files
committed
Add upload release asset to the ci
1 parent faf0847 commit b54ba0f

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,23 @@ jobs:
1010
run: dotnet restore
1111
- name: Publish for win-x64
1212
run: dotnet publish -r win-x64
13-
14-
13+
- name: Create a Release
14+
id: create_release
15+
uses: actions/create-release@v1
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
with:
19+
tag_name: ${{ github.ref }}
20+
release_name: Release ${{ github.ref }}
21+
draft: false
22+
prerelease: false
23+
- name: Upload Release Asset
24+
id: upload-release-asset
25+
uses: actions/upload-release-asset@v1
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
upload_url: ${{ steps.create_release.outputs.upload_url }}
30+
asset_path: ./bin/Release/net8.0/win-x64/publish/WinFileReadEvents.exe
31+
asset_name: WinFileReadEvents.exe
32+
asset_content_type: application/vnd.microsoft.portable-executable

0 commit comments

Comments
 (0)