CI (#62)
Build AquaMai / build (push) Has been cancelled Details

pull/66/head
Menci 2024-10-14 02:05:23 +08:00 committed by GitHub
parent 9384d1d96f
commit b8cc6d9809
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 9 deletions

View File

@ -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