diff --git a/.github/workflows/deploy-github-pages.yml b/.github/workflows/deploy-github-pages.yml new file mode 100644 index 00000000..ca7c0d09 --- /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 967692fc..4910207f 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ .history .idea .editorconfig +.cursor # npm yarn node_modules @@ -14,21 +15,6 @@ 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 -.cache -public - # cypress cypress/videos cypress/screenshots