Skip to content

Commit

Permalink
Fix docs pipeline 📄 (#41)
Browse files Browse the repository at this point in the history
* Fix checkout for existing branch

* Add docs build status to README

* Fix docs build

Co-authored-by: Ashwin Vaidya <ashwinitinvaidya@gmail.com>
  • Loading branch information
ashwinvaidya17 and Ashwin Vaidya authored Dec 21, 2021
1 parent 300402a commit 303c3a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches: [development]
paths-ignore:
- ".github/**" # Ignore changes towards the .github directory
workflow_dispatch: # run on request (no need for PR)

jobs:
Build-and-Publish-Documentation:
Expand Down Expand Up @@ -47,10 +48,13 @@ jobs:
fi
- name: Push docs to gh-pages branch
run: |
cd ..
git fetch
git checkout gh-pages
cp -r docs/build/html/* ./
mkdir -p /tmp/docs_build
cp -r docs/build/html/* /tmp/docs_build/
rm -rf ./*
cp -r /tmp/docs_build/* ./
rm -rf /tmp/docs_build
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches: [development, master]
pull_request:
workflow_dispatch: # run on request (no need for PR)

jobs:
Tox:
Expand Down

0 comments on commit 303c3a5

Please sign in to comment.