From 68c4ccd75c1b4fd442d7004848af4e767448f4c4 Mon Sep 17 00:00:00 2001 From: Dima Shevtsov Date: Fri, 19 Dec 2025 11:49:51 -0600 Subject: [PATCH] Update .gitignore to include .cursor and tmp directories; add GitHub Actions workflow for deploying GitHub Pages preview --- .github/workflows/deploy-github-pages.yml | 21 +++++++++++++++++++++ .gitignore | 18 +++--------------- 2 files changed, 24 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/deploy-github-pages.yml diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml new file mode 100644 index 0000000..ca7c0d0 --- /dev/null +++ b/.github/workflows/deploy-github-pages.yml @@ -0,0 +1,21 @@ +--- +name: Deploy GitHub Pages preview +on: + workflow_dispatch: + inputs: + branch: + description: "Branch to deploy" + type: string + required: true + default: main + +permissions: + contents: read + pages: write + id-token: write + +jobs: + preview: + uses: AdobeDocs/commerce-contributor/.github/workflows/github-pages-preview.yml@main + with: + branch: ${{ inputs.branch || github.ref }} diff --git a/.gitignore b/.gitignore index bbb5662..51fad6e 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ .code-workspace .trash Thumbs.db +.cursor/ # npm yarn node_modules @@ -17,20 +18,6 @@ yarn-error.log .pnp.* .yarn/* -# keep in repo -!.gitignore -!.yarn.lock -!.yarnrc.yml -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions - -# cypress -cypress/videos -cypress/screenshots - # lerna lerna-debug.log @@ -43,4 +30,5 @@ local-test.yml .yalc yalc.lock -coverage/ +# local +tmp/