Skip to content

Merge branch 'master' of github.com:Shipu/dinero into mydinero #24

Merge branch 'master' of github.com:Shipu/dinero into mydinero

Merge branch 'master' of github.com:Shipu/dinero into mydinero #24

Workflow file for this run

name: deploy
on:
push:
branches:
- mydinero
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/mydinero
sudo git pull
'