File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release Executable
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ build-and-release :
13+ runs-on : windows-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup .NET
20+ uses : actions/setup-dotnet@v4
21+ with :
22+ dotnet-version : 6.0.x
23+
24+ - name : Publish win-x64 single-file executable
25+ shell : pwsh
26+ run : |
27+ dotnet restore DataversePluginWrapper.csproj
28+ dotnet publish DataversePluginWrapper.csproj -c Release -r win-x64 --self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true /p:PublishTrimmed=false -o publish/win-x64
29+
30+ - name : Package release zip
31+ shell : pwsh
32+ run : |
33+ Compress-Archive -Path publish/win-x64/* -DestinationPath publish/DataversePluginWrapper-win-x64.zip
34+
35+ - name : Upload asset to GitHub Release
36+ uses : softprops/action-gh-release@v2
37+ with :
38+ files : publish/DataversePluginWrapper-win-x64.zip
You can’t perform that action at this time.
0 commit comments