From 723b6e9de34697566e8662437db74139531ab2c6 Mon Sep 17 00:00:00 2001 From: Dima Shevtsov Date: Fri, 19 Dec 2025 13:26:51 -0600 Subject: [PATCH 1/2] Add sitePath configuration in package.json and update GitHub Actions workflow to use branch input directly --- .github/workflows/deploy-github-pages.yml | 2 +- package.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index ca7c0d09..f163491c 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -18,4 +18,4 @@ jobs: preview: uses: AdobeDocs/commerce-contributor/.github/workflows/github-pages-preview.yml@main with: - branch: ${{ inputs.branch || github.ref }} + branch: ${{ inputs.branch }} diff --git a/package.json b/package.json index 8dc633f7..517df586 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "redirectCheck:stage": "npx --yes github:AdobeDocs/adp-devsite-utils redirectChecker stage --verbose", "redirectCheck:prod": "npx --yes github:AdobeDocs/adp-devsite-utils redirectChecker prod --verbose" }, + "config": { + "sitePath": "commerce/frontend-core" + }, "devDependencies": { "express": "5.2.1" } From 908a8bd511f311a0c52a397ef10c21373e17851c Mon Sep 17 00:00:00 2001 From: Dima Shevtsov Date: Fri, 19 Dec 2025 13:50:54 -0600 Subject: [PATCH 2/2] Refactor GitHub Actions workflow to remove branch input and use github.ref_name directly for deployment --- .github/workflows/deploy-github-pages.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml index f163491c..a1699e3c 100644 --- a/.github/workflows/deploy-github-pages.yml +++ b/.github/workflows/deploy-github-pages.yml @@ -2,12 +2,6 @@ name: Deploy GitHub Pages preview on: workflow_dispatch: - inputs: - branch: - description: "Branch to deploy" - type: string - required: true - default: main permissions: contents: read @@ -18,4 +12,4 @@ jobs: preview: uses: AdobeDocs/commerce-contributor/.github/workflows/github-pages-preview.yml@main with: - branch: ${{ inputs.branch }} + branch: ${{ github.ref_name }}