fix 6f6f7049 #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Remote SSH | |
on: | |
push: | |
branches: | |
- production | |
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/VPlan_FR/ | |
git checkout production | |
git pull | |
source venv/bin/activate.fish | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
cd client | |
npm install --force | |
npm run build | |
sudo service apache2 restart | |
cd .. | |
fish deploy_plan_loader.fish |