-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (37 loc) · 1.3 KB
/
main.yml
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
name: Asset Pallet Generator
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install screenshot-glb
run: npm install --save @shopify/screenshot-glb
- name: Update pallet site
run: |
chmod +x scripts/generate_html_gallery.sh
./scripts/generate_html_gallery.sh models --head > index.html
- name: Take screenshots and make pallet
run: |
chmod +x scripts/process_files.sh
./scripts/process_files.sh models glb png 512 512
./scripts/process_files.sh templates glb png 512 512
./scripts/generate_html_gallery.sh models --body >> index.html
./scripts/generate_html_gallery.sh templates --body --tail >> index.html
- name: Update README
run: |
python scripts/table.py --head > README.md
python scripts/table.py models >> README.md
python scripts/table.py templates >> README.md
- name: Commit changes
run: |
git config --global user.name "madjin"
git config --global user.email "[email protected]"
git add .
git commit -m "Update READMEs"
git push