-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 973 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
32
33
34
35
36
37
38
39
name: 'Deploy'
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install
run: npm run setup
- name: Lint
run: npm run lint
- name: Typecheck
run: npm run typecheck
- name: Convex
env:
CONVEX_DEPLOY_KEY: ${{ secrets.CONVEX_DEPLOY_KEY }}
VITE_CONVEX_URL: ${{ secrets.VITE_CONVEX_URL }}
run: npm run deploy
- name: Deploy
uses: appleboy/[email protected]
with:
host: ${{ secrets.PRTCL_HOST }}
username: ${{ secrets.PRTCL_USERNAME }}
password: ${{ secrets.PRTCL_PASSWORD }}
port: ${{ secrets.PRTCL_PORT }}
source: dist/*
target: ${{ secrets.PRTCL_REMOTE_PATH }}