Update README #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- 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' |