-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b0e0ef2
commit 0c47dca
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters