fix bot scanning site #35
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: Build & Deploy | |
on: | |
push: | |
branches: [simple] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone Portfolio to Digital Ocean | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} # IP address of the server you wish to ssh into | |
key: ${{ secrets.SSH_KEY}} # Private or public key of the server | |
username: ${{secrets.SSH_USERNAME}} # User of the server you want to ssh into | |
script: | | |
zsh | |
source /home/${{secrets.SSH_USERNAME}}/.profile | |
source ~/.nvm/nvm.sh | |
cd /var/www/html/portfolio | |
git fetch origin | |
git reset --hard origin/simple | |
git pull --force origin simple | |