Skip to content

Commit 9765bf7

Browse files
committed
Fixed build file
1 parent 0687f0b commit 9765bf7

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/dotnet.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,43 +10,42 @@ on:
1010
jobs:
1111
build:
1212

13-
runs-on: windows-latest
13+
runs-on: windows-2025
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v5
17+
1718
- uses: nuget/setup-nuget@v2
19+
1820
- name: Add msbuild to PATH
1921
uses: microsoft/setup-msbuild@v2
22+
2023
- name: Update version
2124
run: |
2225
(Get-Content -Path src\ExceptionVisualizer\ExceptionVisualizer.csproj) |
2326
ForEach-Object {$_ -Replace '<AssemblyVersion>0.1.0</AssemblyVersion>', '<AssemblyVersion>0.1.${{ github.run_number }}</AssemblyVersion>'} |
2427
Set-Content -Path src\ExceptionVisualizer\ExceptionVisualizer.csproj
28+
2529
- name: Restore
2630
run: nuget restore
31+
2732
- name: Build
2833
run: msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m
29-
- uses: actions/upload-artifact@v3
34+
35+
- uses: actions/upload-artifact@v4
3036
with:
3137
name: ExceptionVisualizer.vsix
3238
path: src\ExceptionVisualizer\bin\Release\net8.0-windows\ExceptionVisualizer.vsix
39+
3340
- name: Create Release
34-
id: create_release
3541
if: ${{ github.event_name == 'push' }}
36-
uses: actions/[email protected]
37-
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
42+
uses: softprops/action-gh-release@v2
3943
with:
44+
files: |
45+
src\ExceptionVisualizer\bin\Release\net8.0-windows\ExceptionVisualizer.vsix
4046
tag_name: 0.1.${{ github.run_number }}
41-
release_name: Release 0.1.${{ github.run_number }}
47+
name: 0.1.${{ github.run_number }}
4248
draft: false
43-
- name: Upload VSIX
44-
if: ${{ github.event_name == 'push' }}
45-
uses: actions/[email protected]
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48-
with:
49-
upload_url: ${{ steps.create_release.outputs.upload_url }}
50-
asset_path: src\ExceptionVisualizer\bin\Release\net8.0-windows\ExceptionVisualizer.vsix
51-
asset_name: ExceptionVisualizer.vsix
52-
asset_content_type: application/zip
49+
fail_on_unmatched_files: true
50+
generate_release_notes: true
51+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)