Skip to content

Commit 303c3a5

Browse files
ashwinvaidya17Ashwin Vaidya
and
Ashwin Vaidya
authored
Fix docs pipeline 📄 (#41)
* Fix checkout for existing branch * Add docs build status to README * Fix docs build Co-authored-by: Ashwin Vaidya <[email protected]>
1 parent 300402a commit 303c3a5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/docs.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches: [development]
66
paths-ignore:
77
- ".github/**" # Ignore changes towards the .github directory
8+
workflow_dispatch: # run on request (no need for PR)
89

910
jobs:
1011
Build-and-Publish-Documentation:
@@ -47,10 +48,13 @@ jobs:
4748
fi
4849
- name: Push docs to gh-pages branch
4950
run: |
50-
cd ..
5151
git fetch
5252
git checkout gh-pages
53-
cp -r docs/build/html/* ./
53+
mkdir -p /tmp/docs_build
54+
cp -r docs/build/html/* /tmp/docs_build/
55+
rm -rf ./*
56+
cp -r /tmp/docs_build/* ./
57+
rm -rf /tmp/docs_build
5458
git config --local user.email "[email protected]"
5559
git config --local user.name "GitHub Action"
5660
git add .

.github/workflows/tox.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [development, master]
66
pull_request:
7+
workflow_dispatch: # run on request (no need for PR)
78

89
jobs:
910
Tox:

0 commit comments

Comments
 (0)