-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (37 loc) · 941 Bytes
/
render.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
on:
workflow_dispatch:
inputs:
format:
description: Output video format to render
required: true
type: choice
options:
- mp4
- gif
name:
description: Video name to render
required: true
type: choice
options:
- hello
name: Render
jobs:
render:
name: Render - ${{ inputs.name }}.${{ inputs.format }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install Node.js dependencies
run: npm ci
- name: Render
run: npm run render:${{ inputs.format }} --video=${{ inputs.name }}
- name: Upload rendered video artifacts
uses: actions/upload-artifact@v4
with:
name: out
path: out