Skip to content

Commit a596215

Browse files
authored
Merge pull request #996 from processing/main
merge main into teach
2 parents fd3bcfe + 7941164 commit a596215

File tree

122 files changed

+9799
-972
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+9799
-972
lines changed

.github/workflows/deploy.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test and Deploy
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: "14.x"
16+
- name: Install node modules
17+
run: npm ci
18+
- name: Build
19+
run: npm run build
20+
- name: Deploy 🚀
21+
uses: JamesIves/[email protected]
22+
with:
23+
branch: gh-pages # The branch the action should deploy to.
24+
folder: dist/ # The folder the action should deploy.
25+
single-commit: false # "false" here means "preserve git history on the gh-pages branch"

.github/workflows/test.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,23 @@
11
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

4-
name: Node.js CI
4+
name: Test
55

66
on:
7-
push:
8-
branches: [ main ]
97
pull_request:
108
branches: [ main ]
119

1210
jobs:
1311
test:
14-
1512
runs-on: ubuntu-latest
16-
17-
strategy:
18-
matrix:
19-
node-version: [14.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2213
steps:
2314
- uses: actions/checkout@v2
24-
- name: Use Node.js ${{ matrix.node-version }}
15+
- name: Use Node.js
2516
uses: actions/setup-node@v1
2617
with:
27-
node-version: ${{ matrix.node-version }}
28-
- run: npm ci
29-
- run: npm test
18+
node-version: "14.x"
19+
- name: Install node modules
20+
run: npm ci
21+
- name: Run tests
22+
run: npm test
23+

.travis.yml

-12
This file was deleted.

Gruntfile.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,11 @@ module.exports = function(grunt) {
442442
grunt.registerTask('move_dataJSON', function() {
443443
const dataJSON_p5js = 'tmp/p5.js/docs/reference/data.json';
444444
const dataJSON_p5jswebsite = 'src/templates/pages/reference/data.json';
445-
// move the data.json from the cloned p5.js repository to the p5.js-website repository
445+
const dataJSONmin_p5js = 'tmp/p5.js/docs/reference/data.min.json';
446+
const dataJSONmin_p5jswebsite = 'src/templates/pages/reference/data.min.json';
447+
// move the data.json files from the cloned p5.js repository to the p5.js-website repository
446448
fse.moveSync(dataJSON_p5js, dataJSON_p5jswebsite, { overwrite: true });
449+
fse.moveSync(dataJSONmin_p5js, dataJSONmin_p5jswebsite, { overwrite: true });
447450
// delete the tmp folder that contained the p5.js repository
448451
fse.removeSync('tmp/');
449452
});

0 commit comments

Comments
 (0)