Skip to content

Commit 2a8708f

Browse files
authored
Update deploy.yml
1 parent db36168 commit 2a8708f

File tree

1 file changed

+44
-49
lines changed

1 file changed

+44
-49
lines changed

.github/workflows/deploy.yml

+44-49
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,44 @@
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+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout 🛎
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: "16"
22+
23+
- name: Cache dependencies
24+
uses: actions/cache@v3
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-
30+
31+
- name: Install and Build 🔧
32+
run: |
33+
cd summit
34+
npm ci
35+
CI=false npm run build
36+
37+
- name: Deploy 🚀
38+
uses: JamesIves/github-pages-deploy-action@v4
39+
with:
40+
branch: gh-pages
41+
folder: summit/dist
42+
clean: true
43+
cname: genaisummit.ai
44+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)