mirror of https://github.com/hykilpikonna/AquaDX
parent
9384d1d96f
commit
b8cc6d9809
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue