-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (32 loc) · 1.03 KB
/
staging-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: Staging Deployment
on:
push:
branches: [master]
env:
NODE_ENV: staging
jobs:
deploy_staging:
name: Deploy to Staging
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: ./.github/actions/setup_node
- name: Install dependencies
uses: ./.github/actions/npm_install_from_cache
- name: Run tests
run: npm test
- name: Build
uses: ./.github/actions/build
with:
RSBUILD_WS_URL: ${{ secrets.RSBUILD_WS_URL }}
RSBUILD_WS_PUBLIC_PATH: ${{ secrets.RSBUILD_WS_PUBLIC_PATH }}
RSBUILD_WS_PROTECTED_PATH: ${{ secrets.RSBUILD_WS_PROTECTED_PATH }}
RSBUILD_REST_URL: ${{ secrets.RSBUILD_REST_URL }}
- name: Publish to Staging
uses: ./.github/actions/publish_to_staging
with:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
PROJECT_NAME: champion-trader