Skip to content

Create main.yml

Create main.yml #1

Workflow file for this run

name: Deploy ToDo App
on:
push:
branches:
- master
jobs:
deployapp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to server
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST}}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY}}
script: "cd /home/ubuntu/devops && ./deploy.sh"