File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : Build and Deploy
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the main branch
8+ push :
9+ branches : [ master ]
10+
11+ # Allows you to run this workflow manually from the Actions tab
12+ workflow_dispatch :
13+
14+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+ jobs :
16+ # This workflow contains a single job called "build"
17+ build :
18+ # The type of runner that the job will run on
19+ runs-on : ubuntu-latest
20+
21+ # Steps represent a sequence of tasks that will be executed as part of the job
22+ steps :
23+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+ - uses : actions/checkout@v2
25+
26+ - name : Setup Node.js
27+ uses : actions/setup-node@v1
28+ with :
29+ node-version : 14.x
30+ - name : Install dependencies
31+ run : yarn
32+ working-directory : ./
33+
34+ - name : Lint
35+ run : yarn lint
36+ working-directory : ./
37+
38+ - name : Test
39+ run : yarn test
40+ working-directory : ./
41+
42+ - name : Build
43+ run : yarn build
44+ working-directory : ./
45+
46+ - name : Deploy website
47+ uses : peaceiris/actions-gh-pages@v3.6.4
48+ with :
49+ github_token : ${{ secrets.GITHUB_TOKEN }}
50+ publish_dir : ./build
51+
52+ # end
You can’t perform that action at this time.
0 commit comments