Skip to content

fix: refactor rendering pipeline #13

fix: refactor rendering pipeline

fix: refactor rendering pipeline #13

Workflow file for this run

on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 4abdc9b6ff77e69917753afff2a4ad14
projectName: infinite-canvas-tutorial
directory: packages/site/docs/.vitepress/dist
# Optional: Switch what branch you are publishing to.
# By default this will be the branch which triggered this workflow
branch: master
# Optional: Change the working directory
# workingDirectory: my-site
# Optional: Change the Wrangler version, allows you to point to a specific version or a tag such as `beta`
wranglerVersion: '3'
# - name: Algolia crawler creation and crawl
# uses: algolia/[email protected]
# id: algolia_crawler
# with: # mandatory parameters
# crawler-user-id: ${{ secrets.CRAWLER_USER_ID }}
# crawler-api-key: ${{ secrets.CRAWLER_API_KEY }}
# algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }}
# algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }}
# site-url: 'https://infinitecanvas.cc'