Skip to content

Commit

Permalink
Add upload release asset to the ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ptvty committed Mar 29, 2024
1 parent faf0847 commit b54ba0f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,23 @@ jobs:
run: dotnet restore
- name: Publish for win-x64
run: dotnet publish -r win-x64


- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./bin/Release/net8.0/win-x64/publish/WinFileReadEvents.exe
asset_name: WinFileReadEvents.exe
asset_content_type: application/vnd.microsoft.portable-executable

0 comments on commit b54ba0f

Please sign in to comment.