Move field types to TLDR section for better visibility #85
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 Cloudflare Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| deployments: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| name: Deploy to Cloudflare Pages | |
| steps: | |
| - name: Checkout (with submodules) | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive # This pulls submodules | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build Docusaurus site | |
| run: npm run build | |
| env: | |
| GTM_CONTAINER_ID: ${{ secrets.GTM_CONTAINER_ID }} | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/pages-action@v1 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| projectName: turbodocx-docs | |
| directory: build | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Submit URLs to IndexNow | |
| if: github.ref == 'refs/heads/main' | |
| run: node scripts/submit-to-indexnow.js | |
| env: | |
| SITE_URL: https://docs.turbodocx.com | |
| MAX_URLS: 100 |