forked from TedcryptoOrg/website
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.12 KB
/
deploy.yml
File metadata and controls
49 lines (42 loc) · 1.12 KB
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
45
46
47
48
49
name: Build & Deploy
on:
push:
branches: [ "main" ]
env:
CI: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: npm install
- run: npm run build --if-present
- run: npm run test --if-present
- uses: a7ul/tar-action@v1.1.3
with:
command: c
cwd: "./"
files: |
node_modules/
build/
public/
src/
captain-definition
Dockerfile.production
package.json
package-lock.json
outPath: deploy.tar
- name: Deploy App to Caprover
uses: caprover/deploy-from-github@v1.1.2
with:
server: ${{ secrets.CAPROVER_SERVER }}
app: ${{ secrets.CAPROVER_APP }}
token: ${{ secrets.CAPROVER_TOKEN }}