Skip to content

Commit 6f7722e

Browse files
Merge pull request #36 from IntelPython/fix-docs-publishing-step
Allow action to push to gh-pages
2 parents 5e2fd3b + c2c9f71 commit 6f7722e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ jobs:
7373
- name: Checkout gh-pages
7474
if: ${{ !github.event.pull_request && github.event.action != 'closed'}}
7575
run: |
76+
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
7677
git fetch --all
77-
git checkout gh-pages
78+
git checkout --track tokened_docs/gh-pages
7879
- name: 'Copy build to root'
7980
if: ${{ !github.event.pull_request && github.event.action != 'closed'}}
8081
run: |
@@ -89,5 +90,5 @@ jobs:
8990
- name: Publish changes
9091
if: ${{ success() && !github.event.pull_request && github.event.action != 'closed'}}
9192
run: |
92-
git push origin gh-pages
93+
git push tokened_docs gh-pages
9394
timeout-minutes: 10

0 commit comments

Comments
 (0)