Created
February 28, 2022 08:04
-
-
Save kenu/f74bc21c5bf9c68bdf1d84eadcb3b252 to your computer and use it in GitHub Desktop.
.github/workflows
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 for deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: executing remote ssh commands using key | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.KEY }} | |
port: ${{ secrets.PORT }} | |
script: | | |
./deploy.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment