forked from seanprashad/leetcode-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 856 Bytes
/
github-pages.yml
File metadata and controls
41 lines (34 loc) · 856 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
name: github-pages
on:
push:
branches:
- master
workflow_run:
workflows: [run-cron]
types:
- completed
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install dependencies and build
uses: actions/setup-node@v3
with:
node-version: '14'
- run: npm ci
- run: npm run build
- name: Check GitHub Pages status
uses: crazy-max/ghaction-github-status@v3
with:
pages_threshold: major_outage
- name: Deploy to gh-pages branch
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}