Merge pull request #7 from RafaelBlum/add-logotype-contributors #33
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: deploy | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
environment: prod | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: SSH to Host | |
env: | |
AWS_PRIVATE_KEY: ${{ secrets.AWS_PRIVATE_KEY }} | |
AWS_HOSTNAME: ${{ secrets.AWS_HOSTNAME }} | |
AWS_USERNAME : ${{ secrets.AWS_USERNAME }} | |
run: | | |
echo "$AWS_PRIVATE_KEY" > private_key && chmod 600 private_key | |
ssh -o StrictHostKeyChecking=no -i private_key ${AWS_USERNAME}@${AWS_HOSTNAME} ' | |
cat github.txt | |
cd /var/www/demo/dinero | |
sudo git pull | |
' |