Skip to content

Commit 8c66916

Browse files
CI: Tweak doc build.
1 parent 8f33ac4 commit 8c66916

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/publish_docs_to_pages.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ jobs:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
run: |
3737
git remote rm origin
38-
git remote add origin "https://${GITHUB_TOKEN}@github.com/numpy/numpy-financial.git"
38+
#git remote add origin "https://${GITHUB_TOKEN}@github.com/numpy/numpy-financial.git"
3939
git config user.email "github.workflow@nomail"
4040
git config user.name "Github Workflow: publish_docs_to_pages.yml"
41-
#git remote -v
42-
#git config -l
4341
echo "Fetching gh-pages"
44-
git fetch origin gh-pages
42+
git fetch "https://${GITHUB_TOKEN}:[email protected]/numpy/numpy-financial.git" gh-pages
4543
echo "Checking out gh-pages branch"
4644
git checkout gh-pages
4745
echo "Removing old documentation"
@@ -56,4 +54,4 @@ jobs:
5654
git add -A
5755
git commit -m "Add new documentation"
5856
echo "Pushing new documentation to origin"
59-
git push -v origin gh-pages
57+
git push -v "https://${GITHUB_TOKEN}:[email protected]/numpy/numpy-financial.git" gh-pages

0 commit comments

Comments
 (0)