@davoodmehraban89 / medusa / commits / b9fcee6d
Fork 0

ci(preview): remove unconfigured GitHub Pages path in favor of Cloudflare Pages

davoodmehraban89 committed Oct 14, 2026 at 23:48 UTC b9fcee6d364f2a937dae76196e52008ad496f89a
1 file changed -55
.github/workflows/commerce-pages-preview.yml deleted
-55
@@ -1,55 +0,0 @@
1 -name: Preview / Commerce GitHub Pages
2 -
3 -on:
4 - push:
5 - branches:
6 - - project/medusa-foundation-audit
7 - paths:
8 - - "commerce/**"
9 - - ".github/workflows/commerce-pages-preview.yml"
10 - workflow_dispatch:
11 -
12 -permissions:
13 - contents: read
14 - pages: write
15 - id-token: write
16 -
17 -concurrency:
18 - group: commerce-pages-preview
19 - cancel-in-progress: true
20 -
21 -jobs:
22 - deploy-preview:
23 - name: Build and publish storefront preview
24 - runs-on: ubuntu-latest
25 - timeout-minutes: 20
26 - environment:
27 - name: github-pages
28 - url: ${{ steps.deployment.outputs.page_url }}
29 - steps:
30 - - name: Checkout development branch
31 - uses: actions/checkout@v4
32 - - name: Setup Node.js 22
33 - uses: actions/setup-node@v4
34 - with:
35 - node-version: "22"
36 - - name: Install standalone storefront dependencies
37 - working-directory: commerce
38 - run: npm install --no-audit --no-fund
39 - - name: Test storefront
40 - working-directory: commerce
41 - run: npm test
42 - - name: Typecheck and build for repository subpath
43 - working-directory: commerce
44 - # Explicit /medusa/ asset base keeps Vite JS/CSS working on project Pages.
45 - # No API keys / commerce payments are enabled in this public preview.
46 - run: npm run build -- --base=/medusa/
47 - - name: Configure Pages
48 - uses: actions/configure-pages@v5
49 - - name: Upload static files
50 - uses: actions/upload-pages-artifact@v3
51 - with:
52 - path: commerce/dist
53 - - name: Publish public preview
54 - id: deployment
55 - uses: actions/deploy-pages@v4