-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) · 1.26 KB
/
package.yml
File metadata and controls
48 lines (39 loc) · 1.26 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
name: Package Plugin
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
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: Install logiplugintool
run: dotnet tool install --global logiplugintool
- name: Extract PluginApi.dll
shell: pwsh
run: |
New-Item -ItemType Directory -Force -Path ./lib
$pluginApi = Get-ChildItem -Path $env:USERPROFILE\.dotnet\tools\.store -Filter PluginApi.dll -Recurse | Select-Object -First 1
if ($pluginApi) {
Copy-Item -Path $pluginApi.FullName -Destination ./lib/PluginApi.dll
Write-Host "Copied PluginApi.dll to ./lib/"
} else {
Write-Error "PluginApi.dll not found in dotnet tools store."
exit 1
}
- name: Build
run: dotnet build -c Release
- name: Package Plugin
run: logiplugintool pack ./bin/Release ./HapticWeb.lplug4
- name: Upload Plugin Artifact
uses: actions/upload-artifact@v4
with:
name: HapticWeb-Plugin
path: ./HapticWeb.lplug4