manual chunks fix attempt I #235
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 FE | |
on: | |
push: | |
paths: | |
- 'faktorio-fe/**' | |
- '.github/workflows/deploy-fe.yaml' | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
deploy-fe: | |
runs-on: ubuntu-latest | |
name: Deploy Frontend | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 24 | |
cache: 'pnpm' | |
- name: Install deps (with cache) | |
run: pnpm install | |
- name: Build | |
working-directory: ./faktorio-fe | |
env: | |
VITE_API_URL: ${{ vars.VITE_API_URL }} | |
VITE_GOOGLE_CLIENT_ID: ${{ vars.VITE_GOOGLE_CLIENT_ID }} | |
VITE_VAPID_PUBLIC_KEY: ${{ vars.VITE_VAPID_PUBLIC_KEY }} | |
run: pnpm build | |
- name: Deploy Frontend | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
vars: | | |
VITE_API_URL | |
VITE_GOOGLE_CLIENT_ID | |
VITE_VAPID_PUBLIC_KEY | |
packageManager: pnpm | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
workingDirectory: './faktorio-fe' | |
command: pages deploy dist --projectName faktorio |