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 2da8e90..3985e46 100644 --- a/.gitignore +++ b/.gitignore @@ -4,23 +4,10 @@ .history .idea .editorconfig +.cursor -# npm yarn +# npm node_modules -package.lock -yarn-error.log -.pnp.* -.yarn/* - -# keep in repo -!.gitignore -!.yarn.lock -!.yarnrc.yml -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/sdks -!.yarn/versions # gatsby files .env @@ -34,7 +21,8 @@ cypress/screenshots # lerna lerna-debug.log -tmp +# static +_site # Super-linter outputs super-linter-output @@ -42,3 +30,6 @@ super-linter.log # GitHub Actions leftovers github_conf + +# local dev +tmp diff --git a/package.json b/package.json index 3780e78..acd3323 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "type": "git", "url": "https://github.com/AdobeDocs/commerce-testing" }, + "config": { + "sitePath": "commerce/testing" + }, "scripts": { "dev": "node ./dev.mjs", "lint": "npx --yes github:AdobeDocs/adp-devsite-utils runLint -v",