refactor: reorganize and update settings documentation for Capacitor … #1076
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 | |
| # concurrency: | |
| # group: ${{ github.workflow }}-${{ github.ref }} | |
| # cancel-in-progress: true | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| typos: | |
| name: Check for Typos | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Check for Typos | |
| uses: crate-ci/typos@v1.40.0 | |
| build: | |
| # Use a larger runner for faster builds (8 cores, 32GB RAM) | |
| # Change to ubuntu-latest for free tier (2 cores) | |
| runs-on: ubuntu-latest | |
| needs: typos | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| # Cache Astro build artifacts | |
| - name: Cache Astro build | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| .astro | |
| dist | |
| node_modules/.astro | |
| node_modules/.cache | |
| key: ${{ runner.os }}-astro-${{ hashFiles('**/bun.lockb') }}-${{ hashFiles('src/**', 'public/**', 'astro.config.mjs') }} | |
| restore-keys: | | |
| ${{ runner.os }}-astro-${{ hashFiles('**/bun.lockb') }}- | |
| ${{ runner.os }}-astro- | |
| - run: bun install | |
| - run: bun run build | |
| env: | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| ORAMA_CLOUD_API_KEY: ${{ secrets.ORAMA_CLOUD_API_KEY }} | |
| ORAMA_CLOUD_ENDPOINT: ${{ secrets.ORAMA_CLOUD_ENDPOINT }} | |
| CLOUDFLARE_TURNSTILE_SITE_KEY: ${{ secrets.CLOUDFLARE_TURNSTILE_SITE_KEY }} | |
| - run: bunx wrangler@latest deploy | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} |