Create new Remotion video

This commit is contained in:
2023-03-23 12:56:34 +08:00
commit 47df8a11c2
19 changed files with 3164 additions and 0 deletions

30
.github/workflows/render-video.yml vendored Normal file
View 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