- retypeapp/action-build — builds your Retype site.
- retypeapp/action-github-pages — publishes the built output to a branch for GitHub Pages hosting.
retype branch that GitHub Pages serves.
The workflow requires
contents: write permission so that Retype can create the retype branch and write the generated files into it.Setup checklist
- Add a
retype-action.ymlworkflow file (Step 1 below) - Configure GitHub Pages to serve from the
retypebranch (Step 2 below) - Set the
urlin yourretype.yml - Add a
RETYPE_KEYsecret if you use Retype Pro features
Step 1: Add the workflow file
Create the workflows directory
Create the
.github/workflows/ directory in the root of your repository if it does not already exist.Add retype-action.yml
Create the file
.github/workflows/retype-action.yml with the following content:.github/workflows/retype-action.yml
master or docs, update the branch name in the workflow:
Step 2: Configure GitHub Pages
Set the source branch
Under Build and deployment, set the source to Deploy from a branch and select the
retype branch. If the retype branch does not exist yet, push the workflow file first to trigger the initial build.Environment variables and secrets
RETYPE_KEY
If your project uses Retype Pro features, add your license key as a repository secret and reference it in the workflow.Add the secret
Go to Settings > Secrets and variables > Actions in your repository and create a new secret named
RETYPE_KEY with your license key as the value.RETYPE_PASSWORD
If your project uses protected or private pages, add aRETYPE_PASSWORD secret and include it in the workflow:
Other hosting providers
Theretypeapp/action-build action produces a standard set of static files. You can deploy that output to any static hosting provider — Cloudflare Pages, Netlify, GitLab Pages, or your own server — by replacing the retypeapp/action-github-pages step with a deployment step for your target platform.