2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy static content to GitHub Pages
1
+ # Simple workflow for deploying static content to GitHub Pages
2
+ name : Deploy static content to Pages
2
3
3
4
on :
5
+ # Runs on pushes targeting the default branch
4
6
push :
5
7
branches : [main]
8
+
9
+ # Allows you to run this workflow manually from the Actions tab
6
10
workflow_dispatch :
7
11
12
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
8
13
permissions :
9
14
contents : read
10
15
pages : write
11
16
id-token : write
12
17
18
+ # Allow one concurrent deployment
13
19
concurrency :
14
20
group : " pages"
15
21
cancel-in-progress : true
16
22
17
23
env :
24
+ # Hosted GitHub runners have 7 GB of memory available, let's use 6 GB
18
25
NODE_OPTIONS : --max-old-space-size=6144
19
26
20
27
jobs :
@@ -25,28 +32,22 @@ jobs:
25
32
runs-on : ubuntu-latest
26
33
steps :
27
34
- name : Checkout
28
- uses : actions/checkout@v4 # Upgraded from v3
29
-
35
+ uses : actions/checkout@v3
30
36
- name : Set up Node.js
31
- uses : actions/setup-node@v4 # Upgraded from v3
37
+ uses : actions/setup-node@v3
32
38
with :
33
- node-version : 20.x # Updated to LTS version
39
+ node-version : 18.x
34
40
cache : yarn
35
-
36
41
- name : Install dependencies
37
42
run : yarn install --frozen-lockfile --non-interactive
38
-
39
43
- name : Build
40
44
run : yarn build
41
-
42
45
- name : Setup Pages
43
- uses : actions/configure-pages@v4 # Upgraded from v3
44
-
46
+ uses : actions/configure-pages@v3
45
47
- name : Upload artifact
46
48
uses : actions/upload-pages-artifact@v2
47
49
with :
48
50
path : build
49
-
50
51
- name : Deploy to GitHub Pages
51
52
id : deployment
52
- uses : actions/deploy-pages@v3 # Upgraded to latest version
53
+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 24
24
### Example:
25
25
26
26
``` js
27
-
28
27
const userResponse = await codebolt .chat .askQuestion (question: string)
29
28
30
29
```
0 commit comments