Skip to content

Update deploy.yaml

Update deploy.yaml #9

Workflow file for this run

name: Deploy
# Trigger the workflow on push and
# pull request events on the master branch
on:
push:
branches: ['master']
pull_request:
branches: ['master']
# Authenticate to the the server via ssh
# and run our deployment script
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v3
- 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/www.salimi.my && ./.scripts/deploy.sh'