-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 1.12 KB
/
release.yml
File metadata and controls
38 lines (30 loc) · 1.12 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
on:
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: windows-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.x'
- name: Get version from tag
id: version
shell: bash
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
- name: Publish service
run: dotnet publish HyperKeyLiberatorService/HyperKeyLiberatorService.csproj -c Release -r win-x64 --self-contained -p:Version=${{ steps.version.outputs.VERSION }}
- name: Publish helper
run: dotnet publish HyperKeyLiberator/HyperKeyLiberator.csproj -c Release -r win-x64 --self-contained -p:Version=${{ steps.version.outputs.VERSION }}
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: |
HyperKeyLiberatorService/bin/Release/net10.0/win-x64/publish/HyperKeyLiberatorService.exe
HyperKeyLiberator/bin/Release/net10.0/win-x64/publish/HyperKeyLiberator.exe