From af58b4614dbea13a9d5417ef0abe5abe3df4c2c4 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 5 Aug 2026 14:09:00 -0500 Subject: [PATCH] master deploy --- .github/workflows/website.yml | 52 +++++++++++++------ .../[...locale]/auth/[provider]/index.astro | 6 +-- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 52485f6ff..ab7a78c5f 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -9,8 +9,6 @@ on: permissions: contents: read - pages: write - id-token: write concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -50,7 +48,14 @@ jobs: strategy: fail-fast: false matrix: - chunk: [default, api] + include: + - chunk: default + node: blitzkit/blitzkit.github.io + path: dist/website + + - chunk: api + node: blitzkit/api + path: dist/website/api steps: - name: Free disk space @@ -115,20 +120,33 @@ jobs: BUILD_CHUNK: ${{ matrix.chunk }} - name: Upload artifact - uses: actions/upload-pages-artifact@v5 + id: upload + uses: actions/upload-artifact@v4 with: - path: dist/website + name: chunk-${{ matrix.chunk }} + path: ${{ matrix.path }} - deploy-github-pages: - if: ${{ github.ref == 'refs/heads/production' }} - name: Deploy to GitHub Pages - runs-on: ubuntu-latest - needs: build - environment: - name: Production - url: ${{ steps.deployment.outputs.page_url }} + - name: Save artifact ID + run: | + echo "${{ steps.upload.outputs.artifact-id }}" - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v5 + - name: Trigger deployment + env: + TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }} + ARTIFACT_ID: ${{ steps.upload.outputs.artifact-id }} + TARGET_REPO: ${{ matrix.node }} + run: | + curl \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $TOKEN" \ + "https://api.github.com/repos/$TARGET_REPO/dispatches" \ + -d "{ + \"event_type\": \"deploy-pages\", + \"client_payload\": { + \"source_repo\": \"${{ github.repository }}\", + \"run_id\": \"${{ github.run_id }}\", + \"artifact_id\": \"$ARTIFACT_ID\", + \"chunk\": \"${{ matrix.chunk }}\" + } + }" diff --git a/packages/website/src/pages/[...chunk_default]/[...locale]/auth/[provider]/index.astro b/packages/website/src/pages/[...chunk_default]/[...locale]/auth/[provider]/index.astro index b38157251..0fe29196b 100644 --- a/packages/website/src/pages/[...chunk_default]/[...locale]/auth/[provider]/index.astro +++ b/packages/website/src/pages/[...chunk_default]/[...locale]/auth/[provider]/index.astro @@ -1,8 +1,8 @@ --- import { Flex, Heading, Text } from "@radix-ui/themes"; import type { GetStaticPaths } from "astro"; -import { PageWrapper } from "../../../../components/PageWrapper"; -import BaseLayout from "../../../../layouts/BaseLayout.astro"; +import { PageWrapper } from "../../../../../components/PageWrapper"; +import BaseLayout from "../../../../../layouts/BaseLayout.astro"; import { getStaticPaths as parentGetStaticPaths } from "../../index.astro"; import { AUTH_PROVIDER_NAMES, AUTH_PROVIDERS, Authorize } from "./_index"; @@ -10,7 +10,7 @@ export const getStaticPaths = (() => { const parentPaths = parentGetStaticPaths(); return AUTH_PROVIDERS.map((provider) => - parentPaths.map((parent) => ({ params: { ...parent.params, provider } })) + parentPaths.map((parent) => ({ params: { ...parent.params, provider } })), ).flat(); }) satisfies GetStaticPaths;