pollos fix locale to en_US #53
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 pollos.cz | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'pollos/**' | |
| - '.github/workflows/pollos-deploy.yml' | |
| workflow_dispatch: | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| infra: ${{ steps.filter.outputs.infra }} | |
| content: ${{ steps.filter.outputs.content }} | |
| worker: ${{ steps.filter.outputs.worker }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dorny/paths-filter@v4 | |
| id: filter | |
| with: | |
| filters: | | |
| infra: | |
| - 'pollos/infra/**' | |
| - '.github/workflows/pollos-deploy.yml' | |
| content: | |
| - 'pollos/microsite/src/**' | |
| - 'pollos/microsite/templates/**' | |
| - 'pollos/microsite/cli/**' | |
| - 'pollos/microsite/Makefile' | |
| - 'pollos/setup/**' | |
| worker: | |
| - 'pollos/microsite-ws/**' | |
| - '.github/workflows/pollos-deploy.yml' | |
| worker: | |
| needs: changes | |
| if: needs.changes.outputs.worker == 'true' || github.event_name == 'workflow_dispatch' | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: cloudflare/wrangler-action@v4 | |
| with: | |
| apiToken: ${{ secrets.POLLOS_CZ_CF_API_TOKEN }} | |
| accountId: ${{ vars.POLLOS_CZ_CF_ACCOUNT_ID }} | |
| workingDirectory: pollos/microsite-ws | |
| # Pin to our wrangler; the action otherwise falls back to a default 3.x | |
| # that doesn't read wrangler.jsonc (→ "Missing entry-point"). | |
| wranglerVersion: '4.94.0' | |
| command: deploy | |
| infra: | |
| needs: [changes, worker] | |
| # Runs when infra OR the worker changed. The worker job deploys the Worker | |
| # script first so cloudflare_workers_custom_domain has a service to bind to. | |
| if: | | |
| always() && | |
| (needs.worker.result == 'success' || needs.worker.result == 'skipped') && | |
| (needs.changes.outputs.infra == 'true' || needs.changes.outputs.worker == 'true' || github.event_name == 'workflow_dispatch') | |
| runs-on: ubuntu-latest | |
| environment: production | |
| defaults: | |
| run: | |
| working-directory: pollos/infra | |
| env: | |
| TF_VAR_cloudflare_api_token: ${{ secrets.POLLOS_CZ_CF_API_TOKEN }} | |
| TF_VAR_cloudflare_account_id: ${{ vars.POLLOS_CZ_CF_ACCOUNT_ID }} | |
| TF_VAR_cloudflare_zone_id: ${{ vars.POLLOS_CZ_CF_ZONE_ID }} | |
| TF_VAR_betteruptime_api_token: ${{ secrets.POLLOS_BETTERUPTIME_API_TOKEN }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.POLLOS_CZ_R2_ACCESS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.POLLOS_CZ_R2_SECRET_ACCESS_KEY }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: hashicorp/setup-terraform@v4 | |
| - run: terraform init -backend-config="endpoints={s3=\"https://${{ vars.POLLOS_CZ_CF_ACCOUNT_ID }}.r2.cloudflarestorage.com\"}" | |
| - run: terraform apply -auto-approve | |
| content: | |
| needs: [changes, infra] | |
| if: | | |
| always() && | |
| (needs.infra.result == 'success' || needs.infra.result == 'skipped') && | |
| (needs.changes.outputs.content == 'true' || needs.changes.outputs.infra == 'true' || github.event_name == 'workflow_dispatch') | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build static assets (generates /setup index) | |
| run: make build | |
| working-directory: pollos/microsite | |
| - uses: cloudflare/wrangler-action@v4 | |
| with: | |
| apiToken: ${{ secrets.POLLOS_CZ_CF_API_TOKEN }} | |
| accountId: ${{ vars.POLLOS_CZ_CF_ACCOUNT_ID }} | |
| command: pages deploy pollos/microsite/public --project-name=pollos-cz --branch=main |