-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 1.94 KB
/
sync.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build and Sync to Glitch
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Week 3 - Intro to React
run: |
cd ./classes/week-3/intro-to-react
npm install
npm run build
- name: Build Week 3 - Intro to React three fiber
run: | # Week 3 - Intro to React three fiber
cd ./classes/week-3/intro-to-r3f
npm install
npm run build
- name: Build Week 5 - Scene Graph
run: | # Week 5 - Scene Graph
cd ./classes/week-5/scene-graph-r3f
npm install
npm run build
- name: Build Week 5 - Visual Explainers
run: | # Week 5 - Visual Explainers
cd ./classes/week-5/visual-explainers-r3f
npm install
npm run build
- name: Build Week 8 - Materials
run: | # Week 8 - Materials
cd ./classes/week-8/materials-r3f
npm install
npm run build
- name: Build Week 8 - Animated Highlights
run: | # Week 8 - Animated Highlights
cd ./classes/week-8/animated-highlights-r3f
npm install
npm run build
- name: Build Week 10 - Data, Controls, Interactions
run: | # Week 8 - Animated Highlights
cd ./classes/week-10/data-controls-interactions-r3f
npm install
npm run build
# Minimal test of the GitHub Action
# (only runs on pushes to the `main` branch)
# Glitch Project: https://glitch.com/edit/#!/github-action
# sync:
# if: github.event.ref == 'refs/heads/main' # Only main branch deploys to Glitch
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Sync week 3 - Intro to React
# uses: kanadgupta/glitch-sync@main
# with:
# auth-token: "${{ secrets.glitchAuthToken }}"
# project-id: "${{ secrets.week3ProjectId }}"
# path: 'classes/week-3/intro-to-react/dist'