Merge pull request #112 from xiaoiver/feat-bindings #567
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: publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| 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@v4 | |
| with: | |
| version: 9 | |
| - name: Use Node.js 18 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 18 | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build | |
| run: pnpm -r --filter '!@infinite-canvas-tutorial/app' run 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/algoliasearch-crawler-github-actions@v1.0.10 | |
| # 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' |