diff --git a/.github/workflows/unlighthouse.yaml b/.github/workflows/unlighthouse.yaml index a3ddeaa..d5d77e8 100644 --- a/.github/workflows/unlighthouse.yaml +++ b/.github/workflows/unlighthouse.yaml @@ -29,32 +29,45 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.1 + - name: Setup pnpm + uses: pnpm/action-setup@v2.4.0 + with: + version: latest + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4.0.0 with: node-version: ${{ matrix.node-version }} + cache: 'pnpm' - - name: Install dependencies - run: npm install - - - name: Build production - run: npm run build + - name: Retrieve Vercel Preview URL + uses: zentered/vercel-preview-url@v1.1.9 + id: vercel_preview_url + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + with: + vercel_project_id: ${{ vars.VERCEL_PROJECT_ID }} - - name: Start Preview and Get Preview URL - run: npm run preview -- --port=${{ env.PORT }} & echo $! > preview_pid + - name: Await Vercel Deployment + uses: UnlyEd/github-action-await-vercel@v1.2.43 + env: + VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} + with: + deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }} + timeout: 120 - name: Install Dependencies - run: npm add -g @unlighthouse/cli puppeteer + run: pnpm install -g @unlighthouse/cli puppeteer - name: Run Unlighthouse run: | unlighthouse-ci \ - --site "http://localhost:${{ env.PORT }}" \ + --site "${{ steps.vercel_preview_url.outputs.preview_url }}" \ --reporter jsonExpanded \ --build-static - name: Upload report to Cloudflare pages - uses: cloudflare/wrangler-action@v3.3.2 + uses: cloudflare/wrangler-action@2.0.0 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} command: pages deploy .unlighthouse --project-name="${{ env.CLOUDFLARE_PROJECT }}" --branch=${{ env.CLOUDFLARE_BRANCH }} diff --git a/src/app.html b/src/app.html index 303e501..ff1570c 100644 --- a/src/app.html +++ b/src/app.html @@ -8,7 +8,7 @@ - +
{title}
diff --git a/static/robots.txt b/static/robots.txt new file mode 100644 index 0000000..c37fa05 --- /dev/null +++ b/static/robots.txt @@ -0,0 +1,6 @@ +Sitemap: https://hellob.art/sitemap.xml + +# https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap#addsitemap +# https://www.robotstxt.org/robotstxt.html +User-agent: * +Disallow: diff --git a/static/safari-pinned-tab.svg b/static/safari-pinned-tab.svg index 63bc3f6..a84cc6f 100644 --- a/static/safari-pinned-tab.svg +++ b/static/safari-pinned-tab.svg @@ -2,24 +2,24 @@ diff --git a/static/site.webmanifest b/static/site.webmanifest index b20abb7..9591150 100644 --- a/static/site.webmanifest +++ b/static/site.webmanifest @@ -1,19 +1,19 @@ { - "name": "", - "short_name": "", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffffff", - "background_color": "#ffffff", - "display": "standalone" + "name": "", + "short_name": "", + "icons": [ + { + "src": "/android-chrome-192x192.png", + "sizes": "192x192", + "type": "image/png" + }, + { + "src": "/android-chrome-512x512.png", + "sizes": "512x512", + "type": "image/png" + } + ], + "theme_color": "#ffffff", + "background_color": "#ffffff", + "display": "standalone" }