up 组件更新 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- name: 上传 colordesktop-plugin-AnalogClockPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-AnalogClockPlugin" | |
path: src/build_out/Debug/net8.0/plugins/AnalogClockPlugin.zip | |
- name: 上传 colordesktop-plugin-CalendarPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-CalendarPlugin" | |
path: src/build_out/Debug/net8.0/plugins/CalendarPlugin.zip | |
- name: 上传 colordesktop-plugin-ClockPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-ClockPlugin" | |
path: src/build_out/Debug/net8.0/plugins/ClockPlugin.zip | |
- name: 上传 colordesktop-plugin-CoreLib | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-CoreLib" | |
path: src/build_out/Debug/net8.0/plugins/CoreLib.zip | |
- name: 上传 colordesktop-plugin-WeatherPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-WeatherPlugin" | |
path: src/build_out/Debug/net8.0/plugins/WeatherPlugin.zip | |
- name: 上传 colordesktop-plugin-PGLauncherPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-PGLauncherPlugin" | |
path: src/build_out/Debug/net8.0/plugins/PGLauncherPlugin.zip | |
- name: 上传 colordesktop-plugin-PGColorMCPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-PGColorMCPlugin" | |
path: src/build_out/Debug/net8.0/plugins/PGColorMCPlugin.zip | |
- name: 上传 colordesktop-plugin-OneWordPlugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin-OneWordPlugin" | |
path: src/build_out/Debug/net8.0/plugins/OneWordPlugin.zip | |
- name: 上传 colordesktop-plugin | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "colordesktop-plugin" | |
path: src/build_out/Debug/net8.0/plugins/** |