File tree Expand file tree Collapse file tree 2 files changed +33
-19
lines changed Expand file tree Collapse file tree 2 files changed +33
-19
lines changed Original file line number Diff line number Diff line change 8
8
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
9
9
10
10
jobs :
11
- deploy :
12
- name : Deploy to GitHub Pages
11
+ build :
12
+ name : Build Docusaurus
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v4
16
-
17
16
with :
18
- node-version : 20
17
+ fetch-depth : 0
18
+ - uses : actions/setup-node@v4
19
+ with :
20
+ node-version : 18
19
21
cache : npm
20
22
21
23
- name : Install dependencies
22
24
run : npm ci
23
25
- name : Build website
24
26
run : npm run build
25
27
26
- # Popular action to deploy to GitHub Pages:
27
- # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
28
- - name : Deploy to GitHub Pages
29
- uses : peaceiris/actions-gh-pages@v3
28
+ - name : Upload Build Artifact
29
+ uses : actions/upload-pages-artifact@v3
30
30
with :
31
- github_token : ${{ secrets.GH_TOKEN }}
32
- # Build output to publish to the `gh-pages` branch:
33
- publish_dir : ./build
31
+ path : /build
32
+
33
+ deploy :
34
+ name : Deploy to GitHub Pages
35
+ needs : build
36
+
37
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38
+ permissions :
39
+ pages : write # to deploy to Pages
40
+ id-token : write # to verify the deployment originates from an appropriate source
41
+
42
+ # Deploy to the github-pages environment
43
+ environment :
44
+ name : github-pages
45
+ url : ${{ steps.deployment.outputs.page_url }}
34
46
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - name : Deploy to GitHub Pages
50
+ id : deployment
51
+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -55,24 +55,20 @@ const footerLinks = [
55
55
} ,
56
56
{
57
57
label : "Forums" ,
58
- href : `https://www.mongodb.com/community/forums/ ${ utmParams } ` ,
58
+ href : `https://www.mongodb.com/community/forums? ${ utmParams } ` ,
59
59
} ,
60
60
{
61
61
label : "Developer Center" ,
62
- href : `https://www.mongodb.com/developer/ ${ utmParams } ` ,
62
+ href : `https://www.mongodb.com/developer? ${ utmParams } ` ,
63
63
} ,
64
64
{
65
65
label : "MongoDB University" ,
66
- href : `https://learn.mongodb.com/ ${ utmParams } ` ,
66
+ href : `https://learn.mongodb.com? ${ utmParams } ` ,
67
67
} ,
68
68
{
69
- href : `https://github.com/ ${ organizationName } /${ workshopName } ` ,
69
+ href : `https://github.com? ${ organizationName } /${ workshopName } ` ,
70
70
label : "This lab in GitHub" ,
71
71
} ,
72
- {
73
- label : `© ${ new Date ( ) . getFullYear ( ) } MongoDB, Inc.` ,
74
- href : "#" ,
75
- } ,
76
72
] ;
77
73
78
74
///////////////////////////////////////////////////////////////////////////////
@@ -155,6 +151,7 @@ const config = {
155
151
footer : {
156
152
style : "dark" ,
157
153
links : footerLinks ,
154
+ copyright : `© ${ new Date ( ) . getFullYear ( ) } MongoDB, Inc.` ,
158
155
} ,
159
156
prism : {
160
157
theme : lightCodeTheme ,
You can’t perform that action at this time.
0 commit comments