Skip to content

Merge pull request #19 from ChepkemoiPeris/production #24

Merge pull request #19 from ChepkemoiPeris/production

Merge pull request #19 from ChepkemoiPeris/production #24

Workflow file for this run

name: Deploy
# Trigger the workflow on push and
# pull request events on the main branch
on:
push:
branches:
- main
# Authenticate to the the server via ssh
# and run our deployment script
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
key: ${{ secrets.SSHKEY }}
script: "cd /var/www/html && sudo chmod +x ./.scripts/deploy.sh && ./.scripts/deploy.sh"