From aeb2e39f31b26f6cd593d74869b278a6dc61f30d Mon Sep 17 00:00:00 2001 From: m1ngshum <140998506+m1ngshum@users.noreply.github.com> Date: Tue, 2 Sep 2025 11:30:44 +0800 Subject: [PATCH 1/4] chore(ci): Update deploy workflow for consistency in YAML formatting --- .github/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c0ee55..f5550df 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,9 +2,7 @@ name: Build, Test and Deploy AIRKit Example Site on: push: - branches: ['main'] - pull_request: - branches: ['main'] + branches: ["main"] workflow_dispatch: concurrency: @@ -25,9 +23,9 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node-version: '22' - cache: 'npm' - registry-url: 'https://registry.npmjs.org' + node-version: "22" + cache: "npm" + registry-url: "https://registry.npmjs.org" - name: Install dependencies run: npm ci From 26000afce0b36e0078454b4bc51d9661b23637c4 Mon Sep 17 00:00:00 2001 From: m1ngshum <140998506+m1ngshum@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:53:34 +0800 Subject: [PATCH 2/4] test(ci): developers bucket --- .github/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f5550df..3d937a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,7 +2,7 @@ name: Build, Test and Deploy AIRKit Example Site on: push: - branches: ["main"] + branches: ["main", "fix/skip-deploy-with-pr"] workflow_dispatch: concurrency: @@ -68,8 +68,8 @@ jobs: - name: Sync S3 run: | - aws s3 sync ./dist s3://${{ vars.AIR_EXAMPLE_BUCKET_NAME }} + aws s3 sync ./dist s3://${{ vars.AIR_EXAMPLE_BUCKET_NAME }}/airkit-example - name: Invalidate CloudFront cache run: | - aws cloudfront create-invalidation --distribution-id ${{ vars.AIR_EXAMPLE_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*' + aws cloudfront create-invalidation --distribution-id ${{ vars.AIR_EXAMPLE_CLOUDFRONT_DISTRIBUTION_ID }} --paths '/airkit-example/*' From 3eb6e50f2c7156a46e467aa129dbdc7fab097ded Mon Sep 17 00:00:00 2001 From: m1ngshum <140998506+m1ngshum@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:56:35 +0800 Subject: [PATCH 3/4] test(ci): developers bucket --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3d937a0..2a8b330 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,7 @@ jobs: deploy: needs: build-and-test - if: github.ref == 'refs/heads/main' && github.event_name == 'push' + # if: github.ref == 'refs/heads/main' && github.event_name == 'push' runs-on: ubuntu-latest environment: main permissions: From ea5a627238753b24e03aee338cd3e830619700c0 Mon Sep 17 00:00:00 2001 From: m1ngshum <140998506+m1ngshum@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:59:34 +0800 Subject: [PATCH 4/4] test(ci): developers bucket --- vite.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index d03cfeb..384f0a1 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ -import { defineConfig } from 'vite'; -import react from '@vitejs/plugin-react'; -import tailwindcss from '@tailwindcss/vite'; -import mkcert from 'vite-plugin-mkcert'; +import { defineConfig } from "vite"; +import react from "@vitejs/plugin-react"; +import tailwindcss from "@tailwindcss/vite"; +import mkcert from "vite-plugin-mkcert"; // https://vite.dev/config/ export default defineConfig({ @@ -9,5 +9,5 @@ export default defineConfig({ server: { port: 5173, }, - base: process.env.NODE_ENV === 'production' ? '/example/' : '/', + base: process.env.NODE_ENV === "production" ? "/airkit-example/" : "/", });