mirror of https://github.com/hykilpikonna/AquaDX
[F] Fix AquaMai CI after config refactor (#89)
Message from previous commit: [RF] AquaMai configuration refactor (#82) 更新了配置文件格式,原有的配置文件将被自动无缝迁移,详情请见新的配置文件中的注释(例外:`SlideJudgeTweak` 不再默认启用) 旧配置文件将被重命名备份,如果更新到此版本遇到 Bug 请联系我们 Updated configuration file schema. The old config file will be migrated automatically and seamlessly. See the comments in the new configuration file for details. (Except for `SlideJudgeTweak` is no longer enabled by default) Your old configuration file will be renamed as a backup. If you encounter any bug with this version, please contact us.pull/90/head
parent
37044dae01
commit
734dbfb761
|
@ -1,4 +1,4 @@
|
||||||
name: Build AquaMai
|
name: AquaMai Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -7,11 +7,21 @@ on:
|
||||||
- AquaMai/**
|
- AquaMai/**
|
||||||
branches:
|
branches:
|
||||||
- v1-dev
|
- v1-dev
|
||||||
|
pull_request_target:
|
||||||
|
paths:
|
||||||
|
- AquaMai/**
|
||||||
|
branches:
|
||||||
|
- v1-dev
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Fix Git line encoding bug
|
||||||
|
run: |
|
||||||
|
git config --global core.autocrlf false
|
||||||
|
git config --global core.eol lf
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Checkout Assets
|
- name: Checkout Assets
|
||||||
|
@ -31,13 +41,6 @@ jobs:
|
||||||
cd AquaMai
|
cd AquaMai
|
||||||
dotnet build -c Release /p:DefineConstants="CI"
|
dotnet build -c Release /p:DefineConstants="CI"
|
||||||
|
|
||||||
- name: Make example config
|
|
||||||
shell: cmd
|
|
||||||
run: |
|
|
||||||
cd AquaMai\Output
|
|
||||||
dotnet tool install -g dotnet-script
|
|
||||||
dotnet script genConfig.csx
|
|
||||||
|
|
||||||
- name: Prepare artifact
|
- name: Prepare artifact
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
|
@ -52,7 +55,7 @@ jobs:
|
||||||
path: AquaMai\Output\Upload
|
path: AquaMai\Output\Upload
|
||||||
|
|
||||||
- name: Send to Telegram
|
- name: Send to Telegram
|
||||||
if: github.event_name != 'pull_request'
|
if: github.ref_name == 'v1-dev'
|
||||||
run: |
|
run: |
|
||||||
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMediaGroup"
|
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMediaGroup"
|
||||||
$Form = @{
|
$Form = @{
|
||||||
|
|
Loading…
Reference in New Issue