This repository contains shared GitHub Actions workflows and templates for all Adaptive-Edge organization repositories.
Located in workflow-templates/:
- deploy-digitalocean.yml - Automated deployment to DigitalOcean droplet via SSH
- claude-code-action.yml - Enables @claude mentions in PRs and issues
Located in .github/workflows/:
- deploy-reusable.yml - Centralized deployment workflow with customizable inputs
When creating a new workflow in any org repo:
- Go to the Actions tab
- Click "New workflow"
- Organization templates will appear at the top
- Click "Configure" on the desired template
- Commit the file
Add this to .github/workflows/deploy.yml in your repo:
name: Deploy
on:
push:
branches: [ main ]
jobs:
deploy:
uses: Adaptive-Edge/.github/.github/workflows/deploy-reusable.yml@main
secrets: inheritThese should be set at the organization level:
ANTHROPIC_API_KEY- Your Anthropic API keyDROPLET_SSH_KEY- Your DigitalOcean SSH private keyDROPLET_USER- Usuallyrootor your usernameDROPLET_IP- Your droplet's IP address
For each new project, set up the directory on your droplet:
ssh root@your-droplet-ip
mkdir -p /var/www/your-project-name
cd /var/www/your-project-name
git clone git@github.com:Adaptive-Edge/your-project-name.git .
npm install --productionMake sure your droplet has a GitHub deploy key configured.