This repository was archived by the owner on Nov 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +236
-231
lines changed Expand file tree Collapse file tree 9 files changed +236
-231
lines changed Original file line number Diff line number Diff line change 1
1
# Global rule:
2
- * @ Bandwidth/dx
2
+ * @ Bandwidth/software-infrastructure
Original file line number Diff line number Diff line change 84
84
fi
85
85
done < files.txt
86
86
87
- -
uses :
bandwidth/[email protected] .0
87
+ -
uses :
bandwidth/[email protected] .1
88
88
with :
89
89
repoName : api-docs
90
90
prNumber : ${{ env.PR_NUMBER }}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Create LTS Versions
3
3
on :
4
4
schedule :
5
5
- cron : ' 0 0 1,16 * *'
6
+ workflow_dispatch :
6
7
7
8
jobs :
8
9
lts_needed :
38
39
TOKEN : ${{ secrets.DX_GITHUB_TOKEN }}
39
40
LTS_ZIP : ${{ needs.lts_needed.outputs.new_lts_zip }}
40
41
REL_NAME : ${{ needs.lts_needed.outputs.release_name }}
42
+ GOOGLE_ANALYTICS_TRACKING_ID : " 12345"
43
+ GTAG_TRACKING_ID : " 12345"
41
44
42
45
- name : Update Bucket Name
43
46
id : bucket_name
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ concurrency:
17
17
jobs :
18
18
cypress :
19
19
name : Cypress Tests
20
+ if : github.event.pull_request.draft == false
20
21
runs-on : ${{ matrix.os }}
21
22
container :
22
23
image : cypress/browsers:node16.13.2-chrome97-ff96
@@ -54,10 +55,11 @@ jobs:
54
55
COMMIT_INFO_MESSAGE : ${{github.event.pull_request.title}}
55
56
# re-enable PR comment bot
56
57
COMMIT_INFO_SHA : ${{github.event.pull_request.head.sha}}
58
+ GOOGLE_ANALYTICS_TRACKING_ID : " 12345"
59
+ GTAG_TRACKING_ID : " 12345"
57
60
58
61
publish :
59
62
name : Publish Temp Docsite
60
- needs : cypress
61
63
runs-on : ubuntu-latest
62
64
outputs :
63
65
domain : ${{steps.distribution.outputs.distribution-domain}}
90
92
cd site
91
93
yarn install --pure-lockfile
92
94
npm run build
95
+ env :
96
+ GOOGLE_ANALYTICS_TRACKING_ID : " 12345"
97
+ GTAG_TRACKING_ID : " 12345"
93
98
94
99
- name : Sync Zip to Bucket
95
100
run : |
Original file line number Diff line number Diff line change 46
46
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
47
COMMIT_INFO_MESSAGE : ${{github.event.pull_request.title}}
48
48
COMMIT_INFO_SHA : ${{github.event.pull_request.head.sha}}
49
+ GOOGLE_ANALYTICS_TRACKING_ID : " 12345"
50
+ GTAG_TRACKING_ID : " 12345"
49
51
50
52
publish :
51
53
name : Publish Docsite
66
68
cd site
67
69
yarn install --pure-lockfile
68
70
npm run build
71
+ env :
72
+ GOOGLE_ANALYTICS_TRACKING_ID : ${{ secrets.GOOGLE_ANALYTICS_TRACKING_ID }}
73
+ GTAG_TRACKING_ID : ${{ secrets. GTAG_TRACKING_ID}}
69
74
70
75
- name : Configure AWS Credentials
71
76
uses : aws-actions/configure-aws-credentials@v1
@@ -142,6 +147,8 @@ jobs:
142
147
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
143
148
COMMIT_INFO_MESSAGE : ${{github.event.pull_request.title}}
144
149
COMMIT_INFO_SHA : ${{github.event.pull_request.head.sha}}
150
+ GOOGLE_ANALYTICS_TRACKING_ID : " 12345"
151
+ GTAG_TRACKING_ID : " 12345"
145
152
146
153
notify_for_failures :
147
154
name : Notify for Failures
Original file line number Diff line number Diff line change
1
+ require ( "dotenv" ) . config ( ) ;
1
2
const YAML = require ( "yaml" ) ;
2
3
const fs = require ( "fs" ) ;
3
4
const path = require ( "path" ) ;
@@ -132,9 +133,9 @@ module.exports = {
132
133
} ,
133
134
scripts : [
134
135
{
135
- src : ' https://zna4mkbqfujeowh1i-voxbone.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_a4MKBQfuJeoWH1I' ,
136
- async : true
137
- }
136
+ src : " https://zna4mkbqfujeowh1i-voxbone.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_a4MKBQfuJeoWH1I" ,
137
+ async : true ,
138
+ } ,
138
139
] ,
139
140
presets : [
140
141
[
@@ -153,11 +154,11 @@ module.exports = {
153
154
customCss : require . resolve ( "./src/css/main.scss" ) ,
154
155
} ,
155
156
googleAnalytics : {
156
- trackingID : "UA-62651840-1" ,
157
+ trackingID : process . env . GOOGLE_ANALYTICS_TRACKING_ID ,
157
158
anonymizeIP : false ,
158
159
} ,
159
160
gtag : {
160
- trackingID : "G-DGM69FKK2K" ,
161
+ trackingID : process . env . GTAG_TRACKING_ID ,
161
162
anonymizeIP : false ,
162
163
} ,
163
164
} ,
Original file line number Diff line number Diff line change 1
1
[
2
+ " v2023.04.12" ,
2
3
" v2023.03.29" ,
3
4
" v2023.03.15" ,
4
5
" v2023.02.27" ,
9
10
" v2022.12.15" ,
10
11
" v2022.11.30" ,
11
12
" v2022.11.09" ,
12
- " v2022.10.20" ,
13
- " v2022.10.17"
13
+ " v2022.10.20"
14
14
]
Original file line number Diff line number Diff line change 17
17
},
18
18
"dependencies" : {
19
19
"@algolia/client-search" : " ^4.9.1" ,
20
- "@docusaurus/core" : " ^2.3.1 " ,
21
- "@docusaurus/plugin-google-gtag" : " ^2.3.1 " ,
22
- "@docusaurus/preset-classic" : " ^2.3.1 " ,
20
+ "@docusaurus/core" : " ^2.4.0 " ,
21
+ "@docusaurus/plugin-google-gtag" : " ^2.4.0 " ,
22
+ "@docusaurus/preset-classic" : " ^2.4.0 " ,
23
23
"@types/react" : " ^17.0.0" ,
24
24
"bandwidth-redoc" : " ^1.2.0" ,
25
25
"buffer" : " ^6.0.3" ,
26
26
"core-js" : " ^3.1.4" ,
27
27
"docusaurus-plugin-sass" : " ^0.2.2" ,
28
+ "dotenv" : " ^16.0.3" ,
28
29
"js-yaml" : " ^4.1.0" ,
29
30
"mobx" : " ^6.3.0" ,
30
31
"react" : " ^17.0.1" ,
34
35
"sass" : " ^1.56.1" ,
35
36
"styled-components" : " ^5.2.3" ,
36
37
"typescript" : " ^2.7" ,
37
- "webpack" : " ^5.0 .0"
38
+ "webpack" : " ^5.76 .0"
38
39
},
39
40
"browserslist" : {
40
41
"production" : [
You can’t perform that action at this time.
0 commit comments