Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins
TypeScript ai-agentcoding-agentdesktop-appelectronglobali18nlocal-firstmcppipi-agentpi-desktoppluginsreactrusttypescript
fix(release): deploy docs after release publication
vastsa19b8b4aae575
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.ymldeleted file mode 100644index 5c23ab956..000000000--- a/.github/workflows/docs-deploy.yml+++ /dev/null@@ -1,58 +0,0 @@-name: Docs deployment--# Vercel Git deployments are disabled in docs/vercel.json. The documentation-# site is published from the exact release tag instead of every branch push.--on:- release:- types: [published]- workflow_dispatch:- inputs:- ref:- description: 'Git ref to deploy (normally a release tag)'- required: true- type: string--permissions:- contents: read--concurrency:- group: docs-deploy-${{ github.event.release.tag_name || inputs.ref }}- cancel-in-progress: false--env:- VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}- VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}--jobs:- deploy:- name: Deploy documentation- runs-on: ubuntu-latest- timeout-minutes: 20- steps:- - name: Check out release ref- uses: actions/checkout@v7- with:- ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.event.release.tag_name }}- fetch-depth: 0-- - name: Install Vercel CLI- run: npm install --global [email protected]-- - name: Pull Vercel production configuration- working-directory: docs- run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN"- env:- VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}-- - name: Build the documentation deployment- working-directory: docs- run: vercel build --prod --token="$VERCEL_TOKEN"- env:- VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}-- - name: Publish the documentation deployment- working-directory: docs- run: vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"- env:- VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 0fda25ab3..c7e30bb7e 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -520,3 +520,40 @@ jobs:files: dist/*generate_release_notes: trueprerelease: ${{ contains(github.ref_name, '-') }}++ docs-deploy:+ name: Deploy documentation+ if: startsWith(github.ref, 'refs/tags/v')+ needs: publish+ runs-on: ubuntu-latest+ timeout-minutes: 20+ env:+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}+ steps:+ - name: Check out release tag+ uses: actions/checkout@v7+ with:+ ref: ${{ github.ref }}+ fetch-depth: 0++ - name: Install Vercel CLI+ run: npm install --global [email protected]++ - name: Pull Vercel production configuration+ working-directory: docs+ run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN"+ env:+ VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}++ - name: Build the documentation deployment+ working-directory: docs+ run: vercel build --prod --token="$VERCEL_TOKEN"+ env:+ VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}++ - name: Publish the documentation deployment+ working-directory: docs+ run: vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"+ env:+ VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}diff --git a/docs/spec/06-delivery/06-release-runbook.md b/docs/spec/06-delivery/06-release-runbook.mdindex 8fa18205f..eebeb5211 100644--- a/docs/spec/06-delivery/06-release-runbook.md+++ b/docs/spec/06-delivery/06-release-runbook.md@@ -285,14 +285,14 @@ The `pi-desktop-docs` Vercel project is published only from a published GitHubRelease ref.`docs/vercel.json` disables Vercel Git auto-deployments, so pushes to `main`,release branches, and pull requests do not create documentation deployments or-Vercel bot comments. `.github/workflows/docs-deploy.yml` runs after the release-workflow publishes a GitHub Release, checks out its exact tag, and deploys the-production site with the Vercel CLI.+Vercel bot comments. The `docs-deploy` job in `.github/workflows/release.yml`+runs after the release workflow's `publish` job succeeds, checks out the exact+release tag, and deploys the production site with the Vercel CLI. Keeping this+job in the same workflow avoids relying on a second workflow being triggered by+`GITHUB_TOKEN`.The workflow requires the repository secrets `VERCEL_ORG_ID`,-`VERCEL_PROJECT_ID`, and `VERCEL_TOKEN`. Manual runs are available only when a-ref is supplied explicitly, for recovery or a deliberate documentation-republish.+`VERCEL_PROJECT_ID`, and `VERCEL_TOKEN`.### 4.5 CNB mirror trigger