-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1.22 KB
/
build.yml
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
name: Build plugin
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download TS3AudioBot DLLs
run: |
Invoke-WebRequest -Uri "https://splamy.de/api/nightly/projects/ts3ab/master/download" -OutFile "ts3ab.zip"
- name: Extract DLLs
run: |
Expand-Archive -Path "ts3ab.zip" -DestinationPath "ts3ab"
Copy-Item "ts3ab/TS3AudioBot.dll" -Destination "YunPlugin/lib/TS3AudioBot.dll" -Force
Copy-Item "ts3ab/TSLib.dll" -Destination "YunPlugin/lib/TSLib.dll" -Force
Copy-Item "ts3ab/NLog.dll" -Destination "YunPlugin/lib/NLog.dll" -Force
Copy-Item "ts3ab/Newtonsoft.Json.dll" -Destination "YunPlugin/lib/Newtonsoft.Json.dll" -Force
- name: Restore NuGet packages
run: |
dotnet restore "YunPlugin/YunPlugin.sln"
- name: Build solution
run: |
dotnet build "YunPlugin/YunPlugin.sln" --configuration Release
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: YunPlugin-Build
path: |
YunPlugin/bin/Release/