-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify gh actions to generate video previews for 3d visuals
- Loading branch information
Showing
9 changed files
with
2,651 additions
and
2,471 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Generate Previews | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
jobs: | ||
test: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
# To use Remote Caching, uncomment the next lines and follow the steps below. | ||
env: | ||
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }} | ||
TURBO_TEAM: ${{ vars.VERCEL_TEAM }} | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 2 | ||
|
||
- uses: pnpm/action-setup@v2.0.1 | ||
with: | ||
version: 8.6.6 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Generate previews | ||
run: pnpm scripts:generate-previews | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: Previews | ||
path: public/ | ||
retention-days: 30 |
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
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,20 @@ | ||
{ | ||
"name": "scripts", | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"scripts:generate-previews": "ts-node ./src/generate-previews.ts" | ||
}, | ||
"dependencies": { | ||
"puppeteer": "^20.8.1", | ||
"puppeteer-screen-recorder": "^2.1.2", | ||
"ts-node": "^10.9.1" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.44.0", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig": "workspace:*", | ||
"tsup": "^7.1.0", | ||
"typescript": "^5.1.6" | ||
} | ||
} |
Binary file not shown.
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
Oops, something went wrong.