Skip to content

Commit 314a108

Browse files
authored
ci: Add support for GitHub Actions (xitu#112)
* ci: Add support for GitHub Actions close xitu#111 * ci: Deploy assets to master branch * ci: Deploy static files from `public` dir
1 parent 6ae4820 commit 314a108

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.github/workflows/CI.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
1-
name: Build and Deploy
2-
on: [pull_request]
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ zh-Hans ]
6+
workflow_dispatch:
37

48
jobs:
59
build-and-deploy:
610
runs-on: ubuntu-latest
7-
811
steps:
9-
- name: Checkout
12+
- name: Checkout 🛎️
1013
uses: actions/checkout@v2
11-
- name: Install and Build
12-
uses: actions/setup-node@v2
14+
with:
15+
persist-credentials: false
16+
17+
- name: Install and Build 🔧
1318
run: |
1419
yarn install
1520
yarn build
16-
- name: Deploy
17-
uses: JamesIves/[email protected]
21+
22+
- name: Deploy 🚀
23+
uses: JamesIves/[email protected]
1824
with:
19-
branch: master
20-
folder: build
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
BRANCH: master
27+
FOLDER: public
28+
CLEAN: true

0 commit comments

Comments
 (0)