Add files via upload #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/generate_html_gallery.sh models --body >> index.html | |
- name: Update README | |
run: | | |
python scripts/table.py --head > README.md | |
python scripts/table.py models >> README.md | |
- name: Commit changes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
git config --global user.name "${{ secrets.GIT_USER }}" | |
git config --global user.email "${{ secrets.GIT_EMAIL }}" | |
git add -A . | |
git commit -m "Update READMEs" | |
git push |