Create deploy.yml

This commit is contained in:
Théophyl Hoguet authored and GitHub committed 2024-04-14 19:51:44 +02:00
1 parent 442d1214e9
commit 1baa8e8d34
1 file changed
+24
+24
View File
@@ -0,0 +1,24 @@
name: Deploy
# run after validate workflow has completed and the current branch is 'beta'
on:
workflow_run:
workflows: ['validate']
types: [completed]
branches:
- 'main'
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: cd /home/nessar/portfolio/ ; ./installRelease.sh