Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/deploy-github-pages.yml
Original file line number Diff line number Diff line change
@@ -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 }}
16 changes: 1 addition & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
.history
.idea
.editorconfig
.cursor

# npm yarn
node_modules
Expand All @@ -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
Expand Down