Create new Remotion video
This commit is contained in:
30
.github/workflows/render-video.yml
vendored
Normal file
30
.github/workflows/render-video.yml
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
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
|
||||
Reference in New Issue
Block a user