-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.27 KB
/
Copy pathrelease.yml
File metadata and controls
52 lines (41 loc) · 1.27 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: windows-2025
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Configure
run: cmake -S . -B build -A x64
- name: Build
run: cmake --build build --config Release
- name: Package
shell: pwsh
run: |
New-Item -ItemType Directory -Force dist\DwmCornerPatcher | Out-Null
Copy-Item build\Release\DwmCornerPatcher.exe dist\DwmCornerPatcher
Copy-Item README.md dist\DwmCornerPatcher
foreach ($file in @("dbghelp.dll", "symsrv.dll")) {
$path = Join-Path "build\Release" $file
if (Test-Path $path) {
Copy-Item $path dist\DwmCornerPatcher
}
}
Compress-Archive `
-Path dist\DwmCornerPatcher\* `
-DestinationPath dist\DwmCornerPatcher-x64.zip
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: >
gh release create "${{ github.ref_name }}"
"dist\DwmCornerPatcher-x64.zip"
--verify-tag
--generate-notes
--title "DwmCornerPatcher ${{ github.ref_name }}"