only show if bio #75
This file contains hidden or 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: 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 |