Repository navigation
docs(turbosign): PDF signature templates guide + template upload fixes #447
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: '24' | |
| - 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/wrangler-action@v4 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| command: pages deploy build --project-name=turbodocx-docs | |
| gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Submit URLs to IndexNow | |
| if: github.ref == 'refs/heads/main' | |
| uses: bojieyang/indexnow-action@v2 | |
| with: | |
| sitemap-location: https://docs.turbodocx.com/sitemap.xml | |
| key: ${{ secrets.INDEXNOW_KEY }} |