deploy new docs #45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docs to Vercel | |
| on: | |
| push: | |
| branches: | |
| - main | |
| repository_dispatch: | |
| types: [spec-updated] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Docs Repo Code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| cache: 'pip' | |
| - name: Fetch AID Spec Repository | |
| run: | | |
| git clone --depth 1 https://github.com/agentcommunity/agent-interface-discovery ../agent-interface-discovery | |
| - name: Install Python Dependencies | |
| run: pip install -r requirements.txt | |
| - name: Build MkDocs Site | |
| run: mkdocs build | |
| - name: Install Vercel CLI | |
| run: npm install --global vercel@latest | |
| - name: Deploy to Vercel | |
| env: | |
| VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
| VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
| run: vercel deploy ./site --prod --token=${{ secrets.VERCEL_TOKEN }} | |