Skip to content

modify gh actions to generate video previews for 3d visuals #2

modify gh actions to generate video previews for 3d visuals

modify gh actions to generate video previews for 3d visuals #2

name: Generate Previews
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
# To use Remote Caching, uncomment the next lines and follow the steps below.
env:
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
TURBO_TEAM: ${{ vars.VERCEL_TEAM }}
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/action-setup@v2.0.1
with:
version: 8.6.6
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Generate previews
run: pnpm scripts:generate-previews
- uses: actions/upload-artifact@v3
if: always()
with:
name: Previews
path: public/
retention-days: 30