Files
Portfolio/.github/workflows/deploy.yml
T
2024-04-14 19:51:44 +02:00

25 lines
633 B
YAML

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