From 0db9e425abfce3273656b936305401038943e87f Mon Sep 17 00:00:00 2001 From: Cinkafox <70429757+Cinkafox@users.noreply.github.com> Date: Mon, 10 Mar 2025 16:12:11 +0300 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ad4bf29 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: Publish + +on: + workflow_dispatch: + # schedule: + # - cron: '0 10 * * *' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Install dependencies + run: sudo apt-get install -y python3-paramiko python3-lxml + - uses: actions/checkout@v3.6.0 + with: + submodules: 'recursive' + - name: Setup .NET Core + uses: actions/setup-dotnet@v3.2.0 + with: + dotnet-version: 9.0.x + - name: Install dependencies + run: dotnet restore + - name: Build Launcher + run: dotnet build Nebula.Launcher --configuration Release -r win10-x64 + - name: Publish Launcher + run: dotnet publish Nebula.Launcher --configuration Release -r win10-x64 --output ./Release + - name: FTP Deploy + uses: SamKirkland/FTP-Deploy-Action@3.0.0 + with: + ftp-server: ${{ secrets.FTP_SERVER }} + ftp-username: ${{ secrets.FTP_USERNAME }} + ftp-password: ${{ secrets.FTP_PASSWORD }} + local-dir: ./Release/ + server-dir: ./${{ github.sha }}