From 53e3ac5eac15b2aebce8cb007a3916dfa4adea9c Mon Sep 17 00:00:00 2001 From: Sebastien Morais Date: Fri, 3 Nov 2023 16:56:07 +0100 Subject: [PATCH] CI: remove files before upload artifact --- .github/workflows/full_documentation.yml | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/.github/workflows/full_documentation.yml b/.github/workflows/full_documentation.yml index 4f80360f4f5..be9af33ba2b 100644 --- a/.github/workflows/full_documentation.yml +++ b/.github/workflows/full_documentation.yml @@ -78,6 +78,13 @@ jobs: # testenv\Scripts\Activate.ps1 # .\doc\make.bat pdf + # TODO: update upload action once path exclusion is implemented (if ever) + # see https://github.com/actions/upload-pages-artifact/issues/33 + - name: Remove files to not upload + run: | + echo "Removing files not wanted in the uploaded artifact" + Remove-Item doc/_build/html/.doctrees -Recurse -Force + - name: Upload HTML documentation artifact uses: actions/upload-artifact@v3 with: @@ -92,20 +99,6 @@ jobs: path: doc/_build/html/EDBAPI retention-days: 7 -# - name: Upload PDF documentation artifact -# uses: actions/upload-artifact@v3 -# with: -# name: documentation-pdf -# path: doc/_build/pdf -# retention-days: 7 - -# - name: Release -# uses: softprops/action-gh-release@v1 -# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') -# with: -# generate_release_notes: true -# files: | -# doc/_build/pdf doc-deploy-stable: name: Deploy stable documentation