Skip to content

Commit 3a495aa

Browse files
committed
Add github actions
1 parent 0d13863 commit 3a495aa

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
deploy:
7+
if: github.ref == 'refs/heads/master'
8+
runs-on: [ubuntu-latest]
9+
steps:
10+
- uses: actions/checkout@v1
11+
- name: Push to server
12+
uses: appleboy/ssh-action@master
13+
with:
14+
host: ${{ secrets.SSH_HOST }}
15+
username: ${{ secrets.SSH_USER }}
16+
password: ${{ secrets.SSH_PASS }}
17+
port: ${{ secrets.SSH_PORT }}
18+
script: cd pythonchile.cl && source ../env/bin/activate && pip install -r requirements && cp -r output/* ../beta/

0 commit comments

Comments
 (0)