Skip to content

Commit 24ab6ca

Browse files
committed
CI: switch to github actions
1 parent 3bbdbfe commit 24ab6ca

File tree

5 files changed

+52
-59
lines changed

5 files changed

+52
-59
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Setup Node
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: '16'
18+
19+
- run: npm install
20+
- run: npm run ghpages
21+
22+
- name: Deploy
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./ghpages

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Lint Frontend Code
2+
3+
on:
4+
push:
5+
branches: [ master, develop ]
6+
pull_request:
7+
branches: [ master, develop ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-20.04
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Setup Node
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: '16'
20+
21+
- run: npm install
22+
23+
- name: Lint
24+
run: npm run lint

.travis.yml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
"bundle:main": "webpack --config ./scripts/webpack.prod.js",
2323
"bundle:plugin": "webpack --config scripts/webpack.prod.plugins.js",
2424
"bundle": "npm-run-all bundle:main bundle:plugin",
25-
"preghpages": "rimraf ./.tmp",
25+
"preghpages": "rimraf ./ghpages",
2626
"ghpages": "webpack --config ./scripts/webpack.ghpages.js",
27+
"postghpages": "cpx 'demo/{images/*,index.html}' ghpages -v",
2728
"deploy": "./scripts/deploy.sh",
2829
"test": "npm run lint && tsc --noEmit",
2930
"release": "node ./scripts/release.js"

scripts/deploy.sh

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

0 commit comments

Comments
 (0)