Skip to content

Commit 049cb8d

Browse files
committed
Add deploy command
1 parent 0b1b621 commit 049cb8d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,16 @@ jobs:
9393
name: screenshots
9494
path: ${{ github.workspace }}/tmp/screenshots
9595
if-no-files-found: ignore
96+
97+
deploy:
98+
needs: test
99+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
100+
runs-on: ubuntu-latest
101+
steps:
102+
- name: Deploy via SSH
103+
uses: appleboy/ssh-action@v1
104+
with:
105+
host: ${{ secrets.DEPLOY_HOST }}
106+
username: ${{ secrets.DEPLOY_USERNAME }}
107+
key: ${{ secrets.DEPLOY_KEY }}
108+
script: /app/scripts/update

0 commit comments

Comments
 (0)