github ci

This commit is contained in:
2023-03-23 22:25:34 +08:00
parent 24da3373f1
commit dc737db08a

View File

@@ -1,4 +1,9 @@
name: Render video
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
render:
name: Render video
@@ -8,11 +13,9 @@ jobs:
- 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"
- run: sudo apt install yarn
- run: yarn
- run: yarn build"
- uses: actions/upload-artifact@v2
with:
name: out.mp4