Skip to content

Commit e65fda1

Browse files
committed
Add manual triggered release action
Close #72
1 parent ab4f3d2 commit e65fda1

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/release.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
build:
7+
8+
runs-on: windows-latest
9+
strategy:
10+
matrix:
11+
build_platform: [x64, Win32, ARM64]
12+
13+
steps:
14+
- name: Checkout repo
15+
uses: actions/checkout@v5
16+
17+
- name: Add msbuild to PATH
18+
uses: microsoft/setup-msbuild@v2
19+
20+
- name: Setup NuGet.exe
21+
uses: nuget/setup-nuget@v2
22+
23+
- name: Restore
24+
working-directory: .
25+
run: nuget restore NppShell.sln
26+
27+
- name: MSBuild of dll and msix
28+
working-directory: .
29+
run: |
30+
msbuild NppShell.sln /m /p:configuration="Release" /p:platform="${{ matrix.build_platform }}"
31+
32+
- name: Archive artifacts for win32
33+
if: matrix.build_platform == 'Win32'
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: artifacts_win32
37+
path: |
38+
Release\NppShell.x86.dll
39+
40+
- name: Archive artifacts for x64
41+
if: matrix.build_platform == 'x64'
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: artifacts_x64
45+
path: |
46+
${{ matrix.build_platform }}\Release\NppShell.x64.dll
47+
${{ matrix.build_platform }}\Release\NppShell.msix
48+
49+
- name: Archive artifacts for ARM64
50+
if: matrix.build_platform == 'ARM64'
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: artifacts_arm64
54+
path: |
55+
${{ matrix.build_platform }}\Release\NppShell.arm64.dll
56+
${{ matrix.build_platform }}\Release\NppShell.msix

0 commit comments

Comments
 (0)