Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBurger committed Oct 14, 2024
1 parent b0e0ef2 commit 0c47dca
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 3 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/render-video.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
workflow_dispatch:
inputs:
repoOrg:
description: "Repo Org"
required: true
default: "pomber"
repoName:
description: "Repo Name"
required: true
default: "didact"
starCount:
description: "Star Count"
required: true
default: "100"
duration:
description: "Duration (seconds)"
required: false
default: "15"
name: Render video
jobs:
render:
name: Render video
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Fallback fonts (fonts)
run: |
sudo apt-get update -yqq
sudo apt-get install -yq --no-install-recommends \
fonts-noto-core fonts-noto-cjk fonts-noto-color-emoji fonts-noto-mono
- name: Install dependencies (node modules)
run: npm i
- name: Define input props
run: echo $WORKFLOW_INPUT | tee input-props.json | jq -C '.' # Inject to file, inspect to logs
env:
WORKFLOW_INPUT: ${{ toJson(github.event.inputs) }}
- name: Render video
run: npm run build -- --props="./input-props.json"
env:
REMOTION_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload video
uses: actions/upload-artifact@v3
with:
name: out.mp4
path: out/Main.mp4
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@types/react": "18.3.1",
"eslint": "8.56.0",
"prettier": "3.3.3",
"typescript": "5.6.2"
"typescript": "5.5.4"
},
"private": true
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"target": "ES2018",
"module": "commonjs",
"jsx": "react-jsx",
"outDir": "./dist",
"strict": true,
"noEmit": true,
"lib": ["es2015", "DOM"],
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
"noUnusedLocals": true
"noUnusedLocals": true,
"incremental": true
},
"exclude": ["remotion.config.ts"]
}

0 comments on commit 0c47dca

Please sign in to comment.