31 lines
833 B
YAML
31 lines
833 B
YAML
name: Render video
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
titleText:
|
|
description: "Which text should it say?"
|
|
required: true
|
|
default: "Welcome to Remotion"
|
|
titleColor:
|
|
description: "Which color should it be in?"
|
|
required: true
|
|
default: "black"
|
|
jobs:
|
|
render:
|
|
name: Render video
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
- uses: actions/setup-node@main
|
|
- run: sudo apt update
|
|
- run: sudo apt install ffmpeg
|
|
- run: npm i
|
|
- run: echo $WORKFLOW_INPUT > input-props.json
|
|
env:
|
|
WORKFLOW_INPUT: ${{ toJson(github.event.inputs) }}
|
|
- run: npm run build -- --props="./input-props.json"
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: out.mp4
|
|
path: out/video.mp4
|