-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (50 loc) · 1.34 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
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:
- dna
- carbonized
- crush
variant:
description: Video variant to render
required: true
type: choice
options:
- horizontal-60fps-1920x1080
- horizontal-50fps-1920x1080
- horizontal-30fps-960x540
- vertical-60fps-1080x1920
- vertical-50fps-1080x1920
- vertical-30fps-540x960
name: Render
jobs:
render:
name: Render - ${{ inputs.name }}-${{ inputs.variant }}.${{ inputs.format }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Install Node.js dependencies
run: npm ci
- name: Render
run: npm run render:${{ inputs.format }} --video=${{ inputs.name }}-${{ inputs.variant }}
- name: Upload rendered video artifacts
uses: actions/upload-artifact@v3
with:
name: out
path: out