-
Notifications
You must be signed in to change notification settings - Fork 60
47 lines (41 loc) · 1.15 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: GitHub Pages
on:
push:
branches:
- main
paths:
- "website/**"
- ".github/workflows/gh-pages.yml"
jobs:
build-and-deploy:
name: Build use-nft and deploy the website
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.16.0
run_install: |
- args: [--frozen-lockfile]
- name: Build use-nft
run: pnpm build
- name: Build website/
env:
VITE_INFURA_KEY: ${{ secrets.INFURA_KEY }}
VITE_IMAGEKIT_ENDPOINT: ${{ secrets.IMAGEKIT_ENDPOINT }}
run: cd website && pnpm install --frozen-lockfile && pnpm build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: website/dist