From 4d4a21a0cc98861e42b13cc950541c5079c47792 Mon Sep 17 00:00:00 2001 From: Bela <37810842+Belissimo-T@users.noreply.github.com> Date: Wed, 3 Jan 2024 16:41:54 +0100 Subject: [PATCH] testlul --- .github/workflows/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 703f2cf..eae1690 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,29 @@ jobs: port: ${{ secrets.PORT }} script: | cd programming/VPlan_FR/ + + name: Remote SSH +on: + push: + branches: + - master + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: executing remote ssh commands using password + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.IP }} + username: ${{ secrets.USER }} + key: ${{ secrets.PRIVATE_KEY }} + port: ${{ secrets.PORT }} + script: | + cd programming/games-VPlan_FR/ + + kill -INT (lsof -t nohup.out) git checkout production git pull @@ -30,3 +53,8 @@ jobs: npm run build sudo service apache2 restart + + rm nohup.out + nohup node build > nohup.out 2> nohup.err < /dev/null & + + disown (lsof -t nohup.out)