Commit aa74f8b 1 parent eeddc5f commit aa74f8b Copy full SHA for aa74f8b
File tree 1 file changed +49
-49
lines changed
1 file changed +49
-49
lines changed Original file line number Diff line number Diff line change 1
- # name: Deploy to GitHub Pages
2
-
3
- # permissions:
4
- # contents: write
5
-
6
- # on:
7
- # push:
8
- # branches:
9
- # - main
10
-
11
- # jobs:
12
- # build-and-deploy:
13
- # runs-on: ubuntu-latest
14
-
15
- # steps:
16
- # - name: Checkout 🛎️
17
- # uses: actions/checkout@v3
18
-
19
- # - name: Setup Node.js
20
- # uses: actions/setup-node@v3
21
- # with:
22
- # node-version: "16"
23
-
24
- # - name: Cache dependencies
25
- # uses: actions/cache@v3
26
- # with:
27
- # path: ~/.npm
28
- # key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29
- # restore-keys: |
30
- # ${{ runner.os }}-node-
31
-
32
- # - name: Install and Build 🔧
33
- # run: |
34
- # cd summit
35
- # npm ci
36
- # CI=false npm run build
37
-
38
- # - name: Create CNAME file
39
- # run: |
40
- # mkdir -p summit/build
41
- # echo "genaisummit.ai" > summit/build/CNAME
42
-
43
- # - name: Deploy 🚀
44
- # uses: JamesIves/github-pages-deploy-action@v4
45
- # with:
46
- # branch: gh-pages
47
- # folder: summit/build
48
- # clean: true
49
- # token: ${{ secrets.GITHUB_TOKEN }}
1
+ name : Deploy to GitHub Pages
2
+
3
+ permissions :
4
+ contents : write
5
+
6
+ on :
7
+ push :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ build-and-deploy :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - name : Checkout 🛎️
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Setup Node.js
20
+ uses : actions/setup-node@v3
21
+ with :
22
+ node-version : " 16"
23
+
24
+ - name : Cache dependencies
25
+ uses : actions/cache@v3
26
+ with :
27
+ path : ~/.npm
28
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-node-
31
+
32
+ - name : Install and Build 🔧
33
+ run : |
34
+ cd summit
35
+ npm ci
36
+ CI=false npm run build
37
+
38
+ - name : Create CNAME file
39
+ run : |
40
+ mkdir -p summit/build
41
+ echo "genaisummit.ai" > summit/build/CNAME
42
+
43
+ - name : Deploy 🚀
44
+ uses : JamesIves/github-pages-deploy-action@v4
45
+ with :
46
+ branch : gh-pages
47
+ folder : summit/dist
48
+ clean : true
49
+ token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments