Skip to content

Fixed path

Fixed path #35

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: nuget/setup-nuget@v2
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Update version
run: |
(Get-Content -Path src\ExceptionVisualizer\ExceptionVisualizer.csproj) |
ForEach-Object {$_ -Replace '<AssemblyVersion>0.1.0</AssemblyVersion>', '<AssemblyVersion>0.1.${{ github.run_number }}</AssemblyVersion>'} |
Set-Content -Path src\ExceptionVisualizer\ExceptionVisualizer.csproj
- name: Restore
run: nuget restore
- name: Build
run: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
- uses: actions/upload-artifact@v3
with:
name: ExceptionVisualizer.vsix
path: src\ExceptionVisualizer\bin\Release\net8.0-windows\ExceptionVisualizer.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\ExceptionVisualizer\bin\Release\net8.0-windows\ExceptionVisualizer.vsix
asset_name: ExceptionVisualizer.vsix
asset_content_type: application/zip