-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (37 loc) · 1023 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
40
41
42
43
44
name: Build & Deploy
on:
push:
branches: ['233-migrate-to-remix']
pull_request:
branches: ['233-migrate-to-remix']
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npx nx build web
- run: npm run build --if-present
- uses: a7ul/tar-action@v1.1.0
with:
command: c
cwd: './'
files: |
dist/apps/web/
apps/web/captain-definition
outPath: deploy.tar
- name: Deploy App
uses: caprover/deploy-from-github@v1.0.1
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.APP_NAME }}'
token: '${{ secrets.APP_TOKEN }}'