setup ssh workflow

This commit is contained in:
alex 3
2022-09-14 00:02:49 -04:00
committed by GitHub
parent 268a87d955
commit e09a58da46
+19
View File
@@ -0,0 +1,19 @@
name: build remote
on: [push]
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 }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
PATH=$PATH:/${{secrets.USERNAME}}/.nvm/versions/node/v18.8.0/bin
pm2 -v
pm2 restart website