-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 799 Bytes
/
deploy.yml
File metadata and controls
38 lines (32 loc) · 799 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
name: Deploy 🚀
on:
workflow_dispatch: {}
push:
branches:
- master
jobs:
gh-pages-deploy:
name: Deploy 🚀
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.4.0
- name: Setup Node.js environment
uses: actions/setup-node@v2.4.1
with:
version: 16.x
- name: Cache node_modules
uses: actions/cache@v2.1.6
with:
path: |
~/node_modules
key: ${{ runner.os }}-node_modules
- name: Install dependencies as CI
run: npm ci
- name: Webpack build
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: dist