name: AquaMai Build

on:
  push:
    branches: [ master ]

jobs:
  build:
    runs-on: windows-latest
    
    defaults:
      run:
        working-directory: ./AquaMai

    steps:
    - uses: actions/checkout@v4

    - name: Setup MSBuild Path
      uses: microsoft/setup-msbuild@v1.0.2

    - name: Decrypt DLL
      run: gpg -d --batch --passphrase "${{ secrets.DLL_PASSPHRASE }}" -o .\Libs\Assembly-CSharp.dll ..\.github\workflows\DATA
      

    - name: Build with MSBuild
      run: msbuild.exe .\AquaMai.csproj
