-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (32 loc) · 1.16 KB
/
prod_deploy_wb-dashboard.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
on:
push:
branches:
- main
paths:
- '.github/workflows/prod_deploy_wb-dashboard.yml'
- 'webapps/world-builder-dashboard/**'
jobs:
prod_deploy_wb-dashboard:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and main branch
uses: actions/checkout@v2
with:
ref: main
- name: Set up node.js
uses: actions/setup-node@v3
with:
node-version: "20.14.0"
- name: Install and build production app
working-directory: ./webapps/world-builder-dashboard
run: |
npm install
npm run build
- name: Publish to CloudFlare Page
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CF_API_TOKEN_PROD }}
accountId: ${{ secrets.CF_ACCOUNT_ID_PROD }}
projectName: ${{ secrets.CF_PROJECT_NAME_WB_DASHBOARD_PROD }}
directory: ./webapps/world-builder-dashboard/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}