diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 2609b062e6..4356def204 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -30,7 +30,9 @@ jobs: command: doc args: -v --document-private-items - run: echo "" > target/doc/index.html - - run: mkdir target/doc_upload && mv target/doc target/doc_upload/doc + - run: | + if [ -d target/doc_upload ]; then rm -rf target/doc_upload; fi + mkdir target/doc_upload && mv target/doc target/doc_upload/doc - name: Upload documentation uses: crazy-max/ghaction-github-pages@v2 with: