-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.28 KB
/
precheck.yaml
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
name: Build Check
on:
push:
branches:
- 'main'
jobs:
deploy_staging:
name: Build Check
runs-on: ubuntu-latest
environment:
name: production
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
HOST: 0.0.0.0
ADMIN_JWT_SECRET: ${{ secrets.ADMIN_JWT_SECRET }}
API_TOKEN_SALT: ${{ secrets.API_TOKEN_SALT }}
APP_KEYS: ${{ secrets.APP_KEYS }}
CLOUDINARY_KEY: ${{ secrets.CLOUDINARY_KEY }}
CLOUDINARY_NAME: ${{ secrets.CLOUDINARY_NAME }}
TRANSFER_TOKEN_SALT: ${{ secrets.TRANSFER_TOKEN_SALT }}
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }}
JWT_SECRET: ${{ secrets.JWT_SECRET }}
TOKEN_TRANSFER_SALT: ${{ secrets.TOKEN_TRANSFER_SALT }}
DATABASE_HOST: ${{ vars.DATABASE_HOST }}
DATABASE_NAME: ${{ vars.DATABASE_NAME }}
DATABASE_PORT: ${{ vars.DATABASE_PORT }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
- name: Install dependencies
run: npm install
- name: Build Strapi
run: npm run build
- name: Success
run: echo "🚧 Build successful 🚧"