Skip to content

Commit

Permalink
Create release on build
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal authored Oct 10, 2023
1 parent a2a0516 commit 5f6eba9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,23 @@ jobs:
with:
name: ExceptionVisualizer.vsix
path: src\ExceptionVisualizerVsix\bin\Release\net6.0-windows\ExceptionVisualizerVsix.vsix
- name: Create Release
id: create_release
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: 0.1.${{ github.run_number }}
release_name: Release 0.1.${{ github.run_number }}
draft: false
- name: Upload VSIX
if: ${{ github.event_name == 'push' }}
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: src\ExceptionVisualizerVsix\bin\Release\net6.0-windows\ExceptionVisualizerVsix.vsix
asset_name: ExceptionVisualizerVsix.vsix
asset_content_type: application/zip

0 comments on commit 5f6eba9

Please sign in to comment.