-
Notifications
You must be signed in to change notification settings - Fork 62
44 lines (35 loc) · 960 Bytes
/
ci.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
name: ci
on:
pull_request:
push:
branches: [main]
jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install ⚙️
run: yarn install --frozen-lockfile
- name: Prettier 🎨
run: yarn run prettier
- name: Build 🛠
run: yarn build
build-and-deploy:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install ⚙️
run: yarn install --frozen-lockfile
- name: Build 🛠
run: yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.