-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1.01 KB
/
release.yml
File metadata and controls
38 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release Executable
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Publish win-x64 single-file executable
shell: pwsh
run: |
dotnet restore DataversePluginWrapper.csproj
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
- name: Package release zip
shell: pwsh
run: |
Compress-Archive -Path publish/win-x64/* -DestinationPath publish/DataversePluginWrapper-win-x64.zip
- name: Upload asset to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: publish/DataversePluginWrapper-win-x64.zip