Skip to content

Commit 0a9255c

Browse files
committed
Updated the workflow.
1 parent a3eb0c9 commit 0a9255c

2 files changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/msbuild.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232

33+
- name: Setup .NET 6 SDK
34+
uses: actions/setup-dotnet@v3
35+
with:
36+
dotnet-version: '6.0.x'
37+
3338
- name: Add MSBuild to PATH
3439
uses: microsoft/setup-msbuild@v1.0.2
3540

.github/workflows/release.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
1-
name: GitHub Release
1+
name: Create GitHub Release
22

33
on:
44
push:
5-
# Trigger only on tags like v1.0.0, v2.1.5, etc.
65
tags:
76
- 'v*'
87

98
jobs:
109
release:
11-
runs-on: ubuntu-latest
10+
runs-on: windows-latest
1211

1312
steps:
1413
- name: Checkout repository
1514
uses: actions/checkout@v4
1615

17-
- name: Set up .NET (for publishing artifacts if needed)
16+
- name: Setup .NET 6
1817
uses: actions/setup-dotnet@v3
1918
with:
20-
dotnet-version: '6.0.x' # or other appropriate version
19+
dotnet-version: '6.0.x'
2120

22-
- name: Build solution
23-
run: dotnet build SharpExt4.sln --configuration Release
21+
- name: Restore NuGet packages
22+
run: nuget restore SharpExt4.sln
2423

25-
# Optional: Pack or publish NuGet or binaries
26-
# - name: Pack library
27-
# run: dotnet pack path/to/Project.csproj --configuration Release --output ./artifacts
24+
- name: Build solution
25+
run: msbuild SharpExt4.sln /p:Configuration=Release
2826

2927
- name: Create GitHub Release
3028
uses: softprops/action-gh-release@v1
@@ -33,8 +31,6 @@ jobs:
3331
name: ${{ github.ref_name }}
3432
body: |
3533
Release for version ${{ github.ref_name }}
36-
## Changes
37-
- Add changelog or highlights here.
3834
3935
env:
4036
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)