-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (25 loc) · 829 Bytes
/
Copy pathrelease.yml
File metadata and controls
32 lines (25 loc) · 829 Bytes
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
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Publish (self-contained, win-x64)
run: dotnet publish ColumnFinder.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -o publish
- name: Zip
run: Compress-Archive -Path publish\* -DestinationPath ColumnFinder-${{ github.ref_name }}-win-x64.zip
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: ColumnFinder-${{ github.ref_name }}-win-x64.zip
generate_release_notes: true