mirror of https://github.com/hykilpikonna/AquaDX
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: Build AquaMai
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- AquaMai/**
|
|
branches:
|
|
- v1-dev
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Checkout Assets
|
|
uses: clansty/checkout@main
|
|
with:
|
|
repository: clansty/AquaMai-Build-Assets
|
|
ssh-key: ${{ secrets.BUILD_ASSETS_KEY }}
|
|
path: build-assets
|
|
max-attempts: 50
|
|
min-retry-interval: 1
|
|
max-retry-interval: 5
|
|
|
|
- name: Build AquaMai
|
|
shell: cmd
|
|
run: |
|
|
copy /y build-assets\SDEZ\* AquaMai\Libs
|
|
cd AquaMai
|
|
dotnet build -c Release
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: AquaMai
|
|
path: AquaMai\Output\AquaMai.dll
|
|
|
|
- name: Send to Telegram
|
|
if: github.event_name != 'pull_request'
|
|
run: |
|
|
$Uri = "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument"
|
|
$Form = @{
|
|
chat_id = "-1002231087502"
|
|
caption = "${{ github.event.commits[0].message }}"
|
|
document = Get-Item AquaMai\Output\AquaMai.dll
|
|
}
|
|
Invoke-RestMethod -Uri $uri -Form $Form -Method Post
|