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