Skip to content

Add key and use passphrase #4

Add key and use passphrase

Add key and use passphrase #4

Workflow file for this run

on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to production
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.PRODUCTION_HOST }}
username: ${{ secrets.PRODUCTION_USERNAME }}
key: ${{ secrets.PRODUCTION_KEY }}
passphrase: ${{ secrets.PRODUCTION_PASSPHRASE }}
script: |
cd /var/www/mrwhale.io/mrwhale
git pull origin master
yarn install && yarn run build
pm2 reload all