-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (37 loc) · 1.19 KB
/
deploy-stage.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: Deploy Console Kit (STAGE)
on:
push:
branches:
- dev
env:
HUSKY: 0
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: deploy-console
cancel-in-progress: false
container:
image: node:18-alpine3.18
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install SO deps
run: apk add curl git bash jq
- name: Install dependencies
run: yarn install
- name: Download Azion CLI
run: |
wget https://github.com/aziontech/azion/releases/download/2.5.3/azion_2.5.3_linux_amd64.apk
apk add --allow-untrusted azion_2.5.3_linux_amd64.apk
- name: Configure Azion CLI
run: azion -t ${{ secrets.PLATFORM_KIT_TOKEN }}
- name: Build & Deploy
run: azion deploy --auto --local --debug --config-dir azion/stage
env:
VITE_STRIPE_TOKEN_STAGE: ${{ secrets.STAGE_STRIPE_TOKEN }}
VITE_RECAPTCHA_SITE_KEY: ${{ secrets.STAGE_RECAPTCHA_SITE_KEY }}
VITE_SEGMENT_TOKEN: ${{ secrets.STAGE_SEGMENT_TOKEN }}
CROSS_EDGE_SECRET: ${{ secrets.STAGE_CROSS_EDGE_SECRET}}
NODE_ENV: stage
VITE_ENVIRONMENT: stage