Last active
June 7, 2021 12:43
-
-
Save 3mrdev/266d09a5d5b8b7fffe7805b273cb2e52 to your computer and use it in GitHub Desktop.
Github Actions SSH Deploy Workflow
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: Remote ssh command | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using password | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
port: ${{ secrets.PORT }} | |
script: cd ${{ secrets.PROJECT_PATH }} && git pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment