-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (27 loc) · 931 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Deploy next.js-practical-cases
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy Image
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: ${{ secrets.VPS_PORT }}
script: |
export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
export NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=${{ secrets.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY }}
export CLERK_SECRET_KEY=${{ secrets.CLERK_SECRET_KEY }}
export TURBO_TEAM=${{ secrets.TURBO_TEAM }}
export TURBO_TOKEN=${{ secrets.TURBO_TOKEN }}
cd ${{ secrets.VPS_WORK_DIR }}
git pull --rebase
bash ./deploy.sh
exit