From f1eb0e2038fd00117740284a318afac7cc046ce1 Mon Sep 17 00:00:00 2001 From: Andrew Nolan Date: Tue, 27 Aug 2024 13:58:34 -0600 Subject: [PATCH] Clobber exisitng files when copying built docs. --- .github/workflows/docs_workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docs_workflow.yml b/.github/workflows/docs_workflow.yml index 9ab8a8e..f3f5106 100644 --- a/.github/workflows/docs_workflow.yml +++ b/.github/workflows/docs_workflow.yml @@ -56,7 +56,7 @@ jobs: conda activate mosaic_dev pip check cd docs - make clean && make html + make html - name: Copy Docs and Commit run: | set -e @@ -69,8 +69,8 @@ jobs: cd gh-pages # Create `.nojekyll` (if it doesn't already exist) for proper GH Pages configuration. touch .nojekyll - # don't clobber existing release versions (in case we retroactively fixed them) - cp -r -n ../_build/html/* . + # copy source files, clobbering any existing (i.e. no `-n`) + cp -r ../_build/html/* . # Configure git using GitHub Actions credentials. git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]"