Skip to content

Commit 354c0f2

Browse files
committed
Moving the hosting to gh pages
1 parent 0863170 commit 354c0f2

File tree

4 files changed

+19259
-1885
lines changed

4 files changed

+19259
-1885
lines changed

.circleci/config.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Begin CI...
11+
uses: actions/checkout@v2
12+
13+
- name: Use Node 14
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: 14.x
17+
18+
- name: Use cached node_modules
19+
uses: actions/cache@v1
20+
with:
21+
path: node_modules
22+
key: nodeModules-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
nodeModules-
25+
26+
- name: Install dependencies
27+
run: npm install
28+
env:
29+
CI: true
30+
31+
- name: Test
32+
run: npm test
33+
env:
34+
CI: true
35+
36+
- name: Build
37+
run: npm run prod:build
38+
env:
39+
CI: true
40+
41+
- name: Release to GH pages if on master
42+
if: github.ref == 'refs/heads/master'
43+
uses: crazy-max/ghaction-github-pages@v1
44+
with:
45+
target_branch: gh-pages
46+
build_dir: dist
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)