name: deploy-site description: Deploys the Torrust website to GitHub Pages. Use when asked to deploy, publish, or release the site, or to set up the deployment workflow.
Deploy Site
When to use this skill
Use this skill when asked to deploy the Torrust website to production (GitHub Pages).
Automatic deployment (recommended)
Deployment is triggered automatically when you push to the develop branch:
- The
.github/workflows/deploy.ymlworkflow runs - Installs dependencies and runs
npm run build - Creates a
.nojekyllfile inbuild/ - Uploads the build artifact and deploys to GitHub Pages
The live site is available at https://torrust.com/.
Manual deployment
npm run build && npm run deploy
Requirements
- GitHub Pages must be enabled in the repository settings
- A
CNAMEfile must exist at the repo root for the custom domain - The workflow requires
pages: writeandid-token: writepermissions
Verify the deployment
After deploying, check https://torrust.com/ to confirm the changes are live.