Skip to content

Commit c9d24c4

Browse files
Merge pull request #381 from code-dot-org/GithubActions
Migrate to GitHub Actions
2 parents 576746c + 610b73f commit c9d24c4

File tree

6 files changed

+172
-59
lines changed

6 files changed

+172
-59
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.12.0
1+
14.17.1

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

33
Steps to get up and running:
44

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
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",

0 commit comments

Comments
 (0)