Skip to content

Commit

Permalink
Merge pull request #262 from vplan-fr/main
Browse files Browse the repository at this point in the history
testlul
  • Loading branch information
Belissimo-T authored Jan 3, 2024
2 parents ca3e46f + 4d4a21a commit dce6328
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

0 comments on commit dce6328

Please sign in to comment.