Fix PWA config for docs app #92
Workflow file for this run
This file contains 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: 'Docs Deployment' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'apps/docs/**' | |
jobs: | |
publish: | |
name: Publish to Cloudflare Pages | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
permissions: | |
contents: read | |
deployments: write | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ vars.TURBO_TEAM }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: 📥 Monorepo install | |
uses: ./.github/actions/pnpm-install | |
- name: Build | |
run: | | |
cd apps/docs | |
pnpx @cloudflare/next-on-pages | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/[email protected] | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
projectName: ${{ secrets.CF_PROJECT_NAME_DOCS }} | |
directory: .vercel/output/static | |
branch: main | |
wranglerVersion: '3' | |
gitHubToken: ${{ secrets.GITHUB_TOKEN }} | |
workingDirectory: apps/docs |