chore: update beta deploy trigger to feat/nextAdminDocUpdates branch #83
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 to GitHub Pages (beta) | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - feat/nextAdminDocUpdates | |
| jobs: | |
| deploy: | |
| name: Deploy to GitHub Pages (docs.beta.tago.io) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build website (beta domain) | |
| env: | |
| SITE_URL: https://docs.beta.tago.io | |
| run: npm run build | |
| - name: Write CNAME for custom domain | |
| run: | | |
| echo "docs.beta.tago.io" > build/CNAME | |
| - name: Block indexing via robots.txt (beta only) | |
| run: | | |
| cat > build/robots.txt << 'EOF' | |
| User-agent: * | |
| Disallow: / | |
| EOF | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload to GitHub Pages | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: build | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |