File tree Expand file tree Collapse file tree 6 files changed +172
-59
lines changed Expand file tree Collapse file tree 6 files changed +172
-59
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ build_deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout
14+ uses : actions/checkout@v2
15+
16+ - name : Use Node.js
17+ uses : actions/setup-node@v1
18+ with :
19+ node-version : ' 14.17.1'
20+
21+ - name : Install and Build
22+ run : |
23+ yarn install --frozen-lockfile
24+ yarn test
25+ yarn build
26+ cp -r public/* dist
27+
28+ - name : Deploy
29+ if : ${{ github.ref == 'refs/heads/main' }}
30+ uses : JamesIves/github-pages-deploy-action@4.1.5
31+ with :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ BRANCH : gh-pages
34+ FOLDER : dist
Original file line number Diff line number Diff line change 1- 8.12.0
1+ 14.17.1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- [ ![ Build Status] ( https://travis-ci.org /code-dot-org/ml-activities. svg?branch=main )] ( https://travis-ci.org /code-dot-org/ml-activities )
1+ [ ![ Build Status] ( https://github.com /code-dot-org/ml-activities/actions/workflows/deploy.yml/badge. svg?branch=main )] ( https://github.com /code-dot-org/ml-activities/actions/workflows/deploy.yml )
22
33Steps to get up and running:
44
Original file line number Diff line number Diff line change 5858 "babel-preset-env" : " ^1.7.0" ,
5959 "babel-preset-react" : " ^6.5.0" ,
6060 "babelify" : " ^10.0.0" ,
61- "canvas" : " ^2.6 .0" ,
61+ "canvas" : " ^2.8 .0" ,
6262 "clean-webpack-plugin" : " ^3.0.0" ,
6363 "copy-webpack-plugin" : " ^5.0.5" ,
6464 "css-loader" : " ^3.2.0" ,
You can’t perform that action at this time.
0 commit comments