docs/marketing-site-integration.md
This document describes how to set up automatic version updates on the marketing site (mcpproxy.app) when new releases are published.
When a new release tag is pushed to the mcpproxy-go repository, the release workflow automatically triggers an update on the marketing site via GitHub's repository_dispatch event.
Create a GitHub Personal Access Token with repo scope:
MARKETING_SITE_DISPATCH_TOKENrepo (Full control of private repositories)MARKETING_SITE_DISPATCH_TOKENCreate .github/workflows/update-version.yml in the mcpproxy.app-website repository:
name: Update Version
on:
repository_dispatch:
types: [update-version]
jobs:
update-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Update version
run: |
VERSION="${{ github.event.client_payload.version }}"
echo "Updating to version: $VERSION"
# Update version in your site's configuration
# Example for a JSON config:
# jq --arg v "$VERSION" '.version = $v' config.json > tmp.json && mv tmp.json config.json
# Example for environment file:
# echo "MCPPROXY_VERSION=$VERSION" > .env.version
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git diff --staged --quiet || git commit -m "chore: update mcpproxy version to ${{ github.event.client_payload.version }}"
- name: Push changes
run: git push
v1.2.3 to mcpproxy-gorepository_dispatch sends event to marketing siteThe dispatch event sends the following payload:
{
"version": "v1.2.3"
}
Access in workflow: ${{ github.event.client_payload.version }}
repo scopeMARKETING_SITE_DISPATCH_TOKEN.github/workflows/update-version.yml exists in marketing site repotypes array includes update-versioncontinue-on-error: true in release.yml ensures releases aren't blocked if dispatch fails