fix(website): import ThemeProviderProps from next-themes (0.4.x path) #4
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 Website to Cloudflare Pages | |
| # The main Next.js site (attestix.io) deploys through this Actions workflow | |
| # rather than Cloudflare's native GitHub build, which has been failing in the | |
| # CF build environment. Building here (Ubuntu, pinned install) and uploading | |
| # the static export via wrangler keeps the build logs visible and reproducible. | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [main, ci/website-deploy] | |
| paths: | |
| - 'website/**' | |
| - '.github/workflows/website.yml' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: website-deploy | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: website | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install --legacy-peer-deps | |
| - name: Build static export | |
| run: npm run build | |
| - name: Deploy to Cloudflare Pages | |
| uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0 | |
| with: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| workingDirectory: website | |
| command: pages deploy out --project-name=attestix --branch=main |