-
Notifications
You must be signed in to change notification settings - Fork 0
113 lines (97 loc) · 3.57 KB
/
plugin-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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
name: 插件构建
on:
push:
# Sequence of patterns matched against refs/heads
branches:
- 'releases/**'
# Sequence of patterns matched against refs/tags
tags:
- '*'
jobs:
build-plugins:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.403
- name: 更新源码
working-directory: ./
run: |
chmod a+x ./build/update.sh
./build/update.sh
- name: 构建 源码
working-directory: ./
run: |
chmod a+x ./build/build-plugin.sh
./build/build-plugin.sh
- name: 打包
working-directory: ./src/build_out/Debug/net8.0/plugins/
run: |
zip -r ../AnalogClockPlugin.zip AnalogClockPlugin
zip -r ../CalendarPlugin.zip CalendarPlugin
zip -r ../WeatherPlugin.zip WeatherPlugin
zip -r ../ClockPlugin.zip ClockPlugin
zip -r ../CoreLib.zip CoreLib
zip -r ../PGLauncherPlugin.zip PGLauncherPlugin
zip -r ../PGColorMCPlugin.zip PGColorMCPlugin
zip -r ../OneWordPlugin.zip OneWordPlugin
zip -r ../BmPlugin.zip BmPlugin
zip -r ../MonitorPlugin.zip MonitorPlugin
zip -r ../Live2DPlugin.zip Live2DPlugin
- name: 上传 colordesktop-plugin-AnalogClockPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-AnalogClockPlugin"
path: src/build_out/Debug/net8.0/AnalogClockPlugin.zip
- name: 上传 colordesktop-plugin-CalendarPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-CalendarPlugin"
path: src/build_out/Debug/net8.0/CalendarPlugin.zip
- name: 上传 colordesktop-plugin-ClockPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-ClockPlugin"
path: src/build_out/Debug/net8.0/ClockPlugin.zip
- name: 上传 colordesktop-plugin-CoreLib
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-CoreLib"
path: src/build_out/Debug/net8.0/CoreLib.zip
- name: 上传 colordesktop-plugin-WeatherPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-WeatherPlugin"
path: src/build_out/Debug/net8.0/WeatherPlugin.zip
- name: 上传 colordesktop-plugin-PGLauncherPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-PGLauncherPlugin"
path: src/build_out/Debug/net8.0/PGLauncherPlugin.zip
- name: 上传 colordesktop-plugin-PGColorMCPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-PGColorMCPlugin"
path: src/build_out/Debug/net8.0/PGColorMCPlugin.zip
- name: 上传 colordesktop-plugin-OneWordPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-OneWordPlugin"
path: src/build_out/Debug/net8.0/OneWordPlugin.zip
- name: 上传 colordesktop-plugin-BmPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-BmPlugin"
path: src/build_out/Debug/net8.0/BmPlugin.zip
- name: 上传 colordesktop-plugin-MonitorPlugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin-MonitorPlugin"
path: src/build_out/Debug/net8.0/MonitorPlugin.zip
- name: 上传 colordesktop-plugin
uses: actions/upload-artifact@v4
with:
name: "colordesktop-plugin"
path: src/build_out/Debug/net8.0/plugins/**