Skip to content

Commit

Permalink
use casperdcl/push-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Sep 11, 2021
1 parent 38a334c commit 5db0d05
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,21 +89,12 @@ jobs:
pushd docs
pip install -U -r requirements.txt
PYTHONPATH=. pydoc-markdown --build --site-dir=../../../dist/site
if [[ "$DEPLOY" == true ]]; then
mkdir ../pages
pushd ../pages
cp -r ../.git .
git checkout gh-pages
git ls-files -z | xargs -0 git rm
cp -r ../dist/site/* .
touch .nojekyll
git add .
git config user.name "Olivaw[bot]"
git config user.email "64868532+iterative-olivaw@users.noreply.github.com"
git commit -m "update static site"
git push
popd
fi
popd
env:
DEPLOY: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
- uses: casperdcl/push-dir@v1
with:
message: update static site
branch: gh-pages
history: false
dir: dist/site
nojekyll: true
name: Olivaw[bot]
email: 64868532+iterative-olivaw@users.noreply.github.com

0 comments on commit 5db0d05

Please sign in to comment.