Skip to content

Commit

Permalink
fix: revise some remaining issues regarding master docs deploy from #656
Browse files Browse the repository at this point in the history
.

This is a squashed commit including #657, #658 and a bunch of following commits until the problem was resolved.

cc @effigies @mgxd - please fix your repos' histories if they were updated with commits after #656.
  • Loading branch information
oesteban committed Oct 15, 2021
1 parent ac579e7 commit dee54cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs-build-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,17 @@ jobs:
git push
- name: Push "master" docs to gh-pages after a PR is merged
if: github.event.pull_request.merged == true
if: github.ref == 'refs/heads/master'
run: |
if [[ "${CURBRANCH}" != "master" ]]; then
echo "$CURBRANCH is not the default development branch"
exit 1
fi
git checkout -b gh-pages origin/gh-pages
git rm -r master/
git rm -r master/ || true
# It is fundamental that the directory does not exist at all.
rm -rf master
cp -r $HOME/docs/$CURBRANCH $PWD/master
git add master
git commit -am "docs(master): Update docs of development line" || true
git push

0 comments on commit dee54cb

Please sign in to comment.