From 6d893adffaf2aacbff346df0bad2cfb3d9e9df48 Mon Sep 17 00:00:00 2001 From: Timerix22 <87668556+Timerix22@users.noreply.github.com> Date: Sat, 6 Jan 2024 21:08:47 +0600 Subject: [PATCH] deploy-to-server --- .github/workflows/build_all.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index 3c0d1ac..33d082a 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -46,3 +46,17 @@ jobs: with: name: minecraft-launcher-client path: minecraft-launcher-client/bin/publish/ + + deploy-to-server: + needs: [ build-server, build-client ] + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + with: + name: assets + - name: Upload files + env: + SSHPASS: ${{secrets.SSH_PASSWORD}} + run: sshpass -e rsync --archive --compress --verbose --stats -e ssh . ${{secrets.SSH_DESTINATION}} 2>&1 | grep +-v debug1