-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 878 Bytes
/
deploy.yml
File metadata and controls
35 lines (32 loc) · 878 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
name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '15.5.x'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint --if-present
- name: Build
run: npm run build --if-present
- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v2.3.0
with:
keep_history: true
allow_empty_commit: true
build_dir: build
committer: Brittany Harris <hello@brittany-harris.com>
author: Brittany Harris <hello@brittany-harris.com>
commit_message: Update brittany-harris.com
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}