fix: el texto del hero se pinta al instante y baja el lcp en móvil #39
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 to GitHub Pages | |
| on: | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| repository_dispatch: | |
| types: [ update-projects ] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main repository | |
| uses: actions/checkout@v4 | |
| - name: Install Puppeteer system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libnss3 libnspr4 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2t64 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies & Build ctgcode.com | |
| run: | | |
| bun install --frozen-lockfile | |
| bun run build | |
| - name: Checkout plantilla-negocio-local | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ctgcode-com/plantilla-negocio-local | |
| path: templates/plantilla-negocio-local | |
| token: ${{ secrets.PORTFOLIO_TRIGGER_TOKEN || github.token }} | |
| - name: Build plantilla-negocio-local (ES & EN) | |
| run: | | |
| mkdir -p dist/en | |
| cd templates/plantilla-negocio-local | |
| bun install | |
| BASE_PATH="/plantilla-negocio-local" PUBLIC_LOCALE="es" bun run build | |
| cp -r dist ../../dist/plantilla-negocio-local | |
| BASE_PATH="/en/template-local-business" PUBLIC_LOCALE="en" bun run build | |
| cp -r dist ../../dist/en/template-local-business | |
| cd ../.. | |
| - name: Checkout plantilla-servicios-profesionales | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ctgcode-com/plantilla-servicios-profesionales | |
| path: templates/plantilla-servicios-profesionales | |
| token: ${{ secrets.PORTFOLIO_TRIGGER_TOKEN || github.token }} | |
| - name: Build plantilla-servicios-profesionales (ES & EN) | |
| run: | | |
| mkdir -p dist/en | |
| cd templates/plantilla-servicios-profesionales | |
| bun install | |
| BASE_PATH="/plantilla-servicios-profesionales" PUBLIC_LOCALE="es" bun run build | |
| cp -r dist ../../dist/plantilla-servicios-profesionales | |
| BASE_PATH="/en/template-professional-services" PUBLIC_LOCALE="en" bun run build | |
| cp -r dist ../../dist/en/template-professional-services | |
| cd ../.. | |
| - name: Checkout plantilla-producto-startup | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: ctgcode-com/plantilla-producto-startup | |
| path: templates/plantilla-producto-startup | |
| token: ${{ secrets.PORTFOLIO_TRIGGER_TOKEN || github.token }} | |
| - name: Build plantilla-producto-startup (ES & EN) | |
| run: | | |
| mkdir -p dist/en | |
| cd templates/plantilla-producto-startup | |
| bun install | |
| BASE_PATH="/plantilla-producto-startup" PUBLIC_LOCALE="es" bun run build | |
| cp -r dist ../../dist/plantilla-producto-startup | |
| BASE_PATH="/en/template-startup-product" PUBLIC_LOCALE="en" bun run build | |
| cp -r dist ../../dist/en/template-startup-product | |
| cd ../.. | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./dist | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |