mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 09:57:27 +08:00
CI (#62)
This commit is contained in:
13
.github/workflows/aquamai.yaml
vendored
13
.github/workflows/aquamai.yaml
vendored
@@ -11,11 +11,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
target:
|
|
||||||
- SDEZ
|
|
||||||
- SDGA145
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -32,13 +27,13 @@ jobs:
|
|||||||
- name: Build AquaMai
|
- name: Build AquaMai
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
copy /y build-assets\${{ matrix.target }}\* AquaMai\Libs
|
copy /y build-assets\SDEZ\* AquaMai\Libs
|
||||||
cd AquaMai
|
cd AquaMai
|
||||||
dotnet build -c Release /p:DefineConstants="${{ matrix.target }}"
|
dotnet build -c Release
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.target }}
|
name: AquaMai
|
||||||
path: AquaMai\Output\AquaMai.dll
|
path: AquaMai\Output\AquaMai.dll
|
||||||
|
|
||||||
- name: Send to Telegram
|
- name: Send to Telegram
|
||||||
@@ -47,7 +42,7 @@ jobs:
|
|||||||
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument"
|
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument"
|
||||||
$Form = @{
|
$Form = @{
|
||||||
chat_id = "-1002231087502"
|
chat_id = "-1002231087502"
|
||||||
caption = "${{ github.event.commits[0].message }} `n`nFor ${{ matrix.target }}"
|
caption = "${{ github.event.commits[0].message }}"
|
||||||
document = Get-Item AquaMai\Output\AquaMai.dll
|
document = Get-Item AquaMai\Output\AquaMai.dll
|
||||||
}
|
}
|
||||||
Invoke-RestMethod -Uri $uri -Form $Form -Method Post
|
Invoke-RestMethod -Uri $uri -Form $Form -Method Post
|
||||||
|
|||||||
Reference in New Issue
Block a user