From bd7209a43949a65352a2e71eed46a9e60f0e2351 Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Mon, 2 Feb 2026 15:59:37 +1100 Subject: [PATCH] Revert "feat(ci): add PR preview deployments" This reverts commit 26df6a2907e38c573cf21ec34aa256b7e2dc116c. --- .github/workflows/pr-preview.yml | 68 -------------------------------- website/astro.config.mjs | 5 +-- 2 files changed, 1 insertion(+), 72 deletions(-) delete mode 100644 .github/workflows/pr-preview.yml diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml deleted file mode 100644 index 70dd9d6c..00000000 --- a/.github/workflows/pr-preview.yml +++ /dev/null @@ -1,68 +0,0 @@ -# PR Preview deployment workflow -# Deploys a preview of pull requests to GitHub Pages subdirectory - -name: Deploy PR Preview - -on: - pull_request: - types: [opened, reopened, synchronize, closed] - paths: - - 'website/**' - - 'agents/**' - - 'prompts/**' - - 'instructions/**' - - 'skills/**' - - 'collections/**' - - 'cookbook/**' - - 'eng/generate-website-data.mjs' - -concurrency: - group: pr-preview-${{ github.ref }} - cancel-in-progress: true - -permissions: - contents: write - pull-requests: write - -jobs: - deploy-preview: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Setup Node.js - if: github.event.action != 'closed' - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'npm' - - - name: Install root dependencies - if: github.event.action != 'closed' - run: npm ci - - - name: Install website dependencies - if: github.event.action != 'closed' - run: npm ci - working-directory: ./website - - - name: Generate website data - if: github.event.action != 'closed' - run: npm run website:data - - - name: Build Astro site - if: github.event.action != 'closed' - run: npm run build - working-directory: ./website - env: - # Set base path for PR preview subdirectory - ASTRO_BASE: /awesome-copilot/pr-preview/pr-${{ github.event.number }} - - - name: Deploy PR preview - uses: rossjrw/pr-preview-action@v1 - with: - source-dir: ./website/dist/ - preview-branch: gh-pages - umbrella-dir: pr-preview - action: auto diff --git a/website/astro.config.mjs b/website/astro.config.mjs index ea603ce9..e0176df0 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -1,13 +1,10 @@ import sitemap from "@astrojs/sitemap"; import { defineConfig } from "astro/config"; -// Support dynamic base path for PR previews via ASTRO_BASE env var -const base = process.env.ASTRO_BASE || "/"; - // https://astro.build/config export default defineConfig({ site: "https://github.github.io", - base: base, + base: "/", output: "static", integrations: [sitemap()], build: {