-
Notifications
You must be signed in to change notification settings - Fork 188
80 lines (72 loc) · 2.77 KB
/
build-json.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: Build Website - JSON
on:
push:
branches:
- master
- dev
concurrency:
group: build-json-doc-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/build-branch.yml
with:
branch: ${{ github.ref }}
num_workers: 10
enable_python_cache: false
enable_sphinx_cache: true
enable_qml_execution_times_cache: false
skip_execution_times_aggregation: true
skip_sphinx_build_file_aggregation: false
sphinx_build_output_format: json
upload-production:
if: github.ref_name == 'master'
needs:
- build
uses: ./.github/workflows/upload-json.yml
with:
branch: ${{ github.ref }}
aws_s3_bucket_dir: commits/${{ github.ref_name }}-${{ github.sha }}
artifact_name: json.zip
qml_react_webhook_event_type: build-pl-site-main
secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.PL_SITE_PROD_NON_REACT_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.PL_SITE_PROD_NON_REACT_SECRET_ACCESS_KEY }}
aws_json_s3_bucket_id: ${{ secrets.PL_SITE_PROD_QML_JSON_S3_BUCKET_ID }}
aws_html_s3_bucket_id: ${{ secrets.PL_SITE_PROD_S3_BUCKET_NAME }}
qml_react_pat_token: ${{ secrets.PL_SITE_PROD_QML_REACT_PAT }}
upload-staging:
if: github.ref_name == 'dev'
needs:
- build
uses: ./.github/workflows/upload-json.yml
with:
branch: ${{ github.ref }}
aws_s3_bucket_dir: commits/${{ github.ref_name }}-${{ github.sha }}
artifact_name: json.zip
qml_react_webhook_event_type: build-pl-site-staging
secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.PL_SITE_STAGING_NON_REACT_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.PL_SITE_STAGING_NON_REACT_SECRET_ACCESS_KEY }}
aws_json_s3_bucket_id: ${{ secrets.PL_SITE_STAGING_QML_JSON_S3_BUCKET_ID }}
aws_html_s3_bucket_id: ${{ secrets.PL_SITE_STAGING_S3_BUCKET_NAME }}
qml_react_pat_token: ${{ secrets.PL_SITE_STAGING_QML_REACT_PAT }}
upload-dev:
if: github.ref_name == 'dev'
needs:
- build
uses: ./.github/workflows/upload-json.yml
with:
branch: ${{ github.ref }}
aws_s3_bucket_dir: commits/${{ github.ref_name }}-${{ github.sha }}
artifact_name: json.zip
qml_react_webhook_event_type: build-pl-site-dev
secrets:
aws_region: ${{ secrets.AWS_REGION }}
aws_access_key_id: ${{ secrets.PL_SITE_DEV_NON_REACT_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.PL_SITE_DEV_NON_REACT_SECRET_ACCESS_KEY }}
aws_json_s3_bucket_id: ${{ secrets.PL_SITE_DEV_QML_JSON_S3_BUCKET_ID }}
aws_html_s3_bucket_id: ${{ secrets.PL_SITE_DEV_S3_BUCKET_NAME }}
qml_react_pat_token: ${{ secrets.PL_SITE_DEV_QML_REACT_PAT }}