CI/CD Integration
Automate your Worktree Cloud Site deployments with continuous integration and deployment pipelines, integrated right into Worktree Actions.
Worktree Actions
---
name: Deploy
"on":
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Build your site. For example, Hugo:
- name: Setup Hugo
uses: https://github.com/peaceiris/actions-hugo@v3
with:
hugo-version: '0.140.0'
- name: Build
run: hugo --minify
# Generate your deploy token and get your site ID in the Worktree Cloud
# console, then you're ready to deploy!
- name: Deploy to Worktree Cloud Sites
uses: worktree/deploy-site@424d14e0613e3557ac9ac9c21dc65df767d23537
with:
source: public
site_id: xxxyyyyzzzz
deploy_token: ${{ secrets.SITES_DEPLOY_TOKEN }}