Skip to content

๐Ÿš€ Critical performance fixes: optimize LCP, reduce render blocking #32

๐Ÿš€ Critical performance fixes: optimize LCP, reduce render blocking

๐Ÿš€ Critical performance fixes: optimize LCP, reduce render blocking #32

Workflow file for this run

name: Deploy Eleventy to Pages
on:
push:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
# ู…ุณุญู†ุง ุงู„ู€ cache line ุนุดุงู† ู…ููŠุด package-lock.json
# ุงุณุชุฎุฏุงู… npm install ุจุฏู„ุงู‹ ู…ู† npm ci
- run: npm install
# ุจู†ุจู†ูŠ ุงู„ู…ูˆู‚ุน ุฅู„ู‰ _site
- run: npx @11ty/eleventy
# ู†ุฑูุน ุงู„ุฃุฑุชูŠูุงูƒุช ุจุชุงุน _site ู„ู„ู†ุดุฑ
- uses: actions/upload-pages-artifact@v3
with:
path: _site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4