Skip to content

Commit

Permalink
Merge pull request #36 from IntelPython/fix-docs-publishing-step
Browse files Browse the repository at this point in the history
Allow action to push to gh-pages
  • Loading branch information
oleksandr-pavlyk authored Feb 23, 2024
2 parents 5e2fd3b + c2c9f71 commit 6f7722e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ jobs:
- name: Checkout gh-pages
if: ${{ !github.event.pull_request && github.event.action != 'closed'}}
run: |
git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
git fetch --all
git checkout gh-pages
git checkout --track tokened_docs/gh-pages
- name: 'Copy build to root'
if: ${{ !github.event.pull_request && github.event.action != 'closed'}}
run: |
Expand All @@ -89,5 +90,5 @@ jobs:
- name: Publish changes
if: ${{ success() && !github.event.pull_request && github.event.action != 'closed'}}
run: |
git push origin gh-pages
git push tokened_docs gh-pages
timeout-minutes: 10

0 comments on commit 6f7722e

Please sign in to comment.