Skip to content

Commit 4583624

Browse files
committed
Replace manual git operations for gh-pages branch with checkout step
1 parent 2092715 commit 4583624

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/deploy-bundle-preview.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,16 @@ jobs:
8484
body-includes: UI bundle preview build successful!
8585
direction: last
8686

87+
- name: Checkout gh-pages Branch
88+
uses: actions/checkout@v3
89+
with:
90+
token: ${{ secrets.DOCS_GITHUB_PAT }}
91+
ref: gh-pages
92+
path: pages
93+
8794
- name: Deploy to GitHub Pages
8895
if: success()
8996
run: |
90-
git clone https://x-access-token:${{ secrets.DOCS_GITHUB_PAT }}@github.com/$GITHUB_REPOSITORY.git pages
91-
cd pages
92-
git checkout gh-pages
93-
9497
# If there was previously a build for the preview, then remove it
9598
# so we get a clean build. This is needed in case a follow up
9699
# build of the same pull request contains content deletions.

0 commit comments

Comments
 (0)