mirror of https://github.com/hykilpikonna/AquaDX
parent
9384d1d96f
commit
b8cc6d9809
|
@ -11,11 +11,6 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
target:
|
||||
- SDEZ
|
||||
- SDGA145
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
@ -32,13 +27,13 @@ jobs:
|
|||
- name: Build AquaMai
|
||||
shell: cmd
|
||||
run: |
|
||||
copy /y build-assets\${{ matrix.target }}\* AquaMai\Libs
|
||||
copy /y build-assets\SDEZ\* AquaMai\Libs
|
||||
cd AquaMai
|
||||
dotnet build -c Release /p:DefineConstants="${{ matrix.target }}"
|
||||
dotnet build -c Release
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.target }}
|
||||
name: AquaMai
|
||||
path: AquaMai\Output\AquaMai.dll
|
||||
|
||||
- name: Send to Telegram
|
||||
|
@ -47,7 +42,7 @@ jobs:
|
|||
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument"
|
||||
$Form = @{
|
||||
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
|
||||
}
|
||||
Invoke-RestMethod -Uri $uri -Form $Form -Method Post
|
||||
|
|
Loading…
Reference in New Issue