forked from seanprashad/leetcode-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 858 Bytes
/
Copy pathdeploy.yml
File metadata and controls
42 lines (33 loc) · 858 Bytes
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
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_run:
workflows: [Update Questions]
types:
- completed
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci
- name: Build
env:
NEXT_PUBLIC_BASE_PATH: /leetcode-patterns
NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}
run: npm run build
- uses: JamesIves/github-pages-deploy-action@v4
with:
folder: out
branch: gh-pages
clean-exclude: pr-preview
force: false