Skip to content

πŸŽ₯ Make videos programmatically with React

Update deploy-static.mdx

Jonny Burger0eb8f05b4fe1
diff --git a/packages/docs/docs/studio/deploy-static.mdx b/packages/docs/docs/studio/deploy-static.mdx
index 47920fdc2c..951c15adbe 100644
--- a/packages/docs/docs/studio/deploy-static.mdx
+++ b/packages/docs/docs/studio/deploy-static.mdx
@@ -50,20 +50,17 @@ Connect your repository to Netlify.
- **Publish directory**: `build`
- **Functions directory**: _Leave default_
-## Deploy to GitHub pages using GitHub actions
+## Deploy to GitHub Pages
-<Step>1</Step> Commit your repository to GitHub
-
-<Step>2</Step> Add the following code to `.github/workflows/deploy-studio.yml`
+<Step>1</Step> Create the following file in your repo:
```yaml title=".github/workflows/deploy-studio.yml"
-
name: Deploy Remotion studio
-on:
+on:
workflow_dispatch:
push:
branches:
- - 'main'
+ - "main"
permissions:
contents: write
jobs:
@@ -71,37 +68,28 @@ jobs:
name: Render video
runs-on: ubuntu-latest
steps:
- - name: Checkout & setup
+ - name: Checkout
uses: actions/checkout@main
-
- - uses: oven-sh/setup-bun@v1
- - run: sudo apt update
-
- name: install packages
- run: bun i
-
- - name: Bundle studio
- run: bunx remotion bundle --public-path="./"
-
- - name: Deploy πŸš€
+ run: npm i
+ - name: Bundle Studio
+ run: npx remotion bundle --public-path="./"
+ - name: Deploy Studio
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
```
-The above code will deploy the bundled remotion studio to a branch `gh-pages`
-
-:::note
-Using bunx as a script runner is slightly faster than using `npx`.
-:::
+The above code will deploy the bundled Remotion Studio to a branch `gh-pages`.
:::note
The --public-path flag for `npx remotion bundle` is available only from remotion version `4.0.127`
:::
-<Step>3</Step> Go to `github.com/username/repo/settings/pages`
+<Step>3</Step> Go to the settings of your repository (github.com/\[username\]/\[repo\]/settings/pages) <br />
-<Step>4</Step> In the Branch section, select the `gh-pages` branch and click save
+<Step>4</Step> In the Branch section, select the <code>gh-pages</code> branch and
+click save.
## Rendering from a URL