Skip to content

install true

install true #17

Workflow file for this run

name: Deploy to Digital Ocean Server
on:
push:
branches:
- staging
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Deploy to Server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
if [[ "${{ github.ref }}" == "refs/heads/staging" ]]; then
cd /var/www/staging.riversinstitute.org
git pull origin staging
elif [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
cd /var/www/riversinstitute.org
git pull origin master
fi