diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbb4387..549c64c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file