diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 95edfad788..3d20ca18c9 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -57,6 +57,14 @@ jobs: python ./process_notebooks.py render working-directory: website + - name: Prepare website content + run: | + # Create a temporary directory for filtered content + mkdir -p temp_website + + # Copy files except .ipynb, node_modules, .quarto, and .gitignore + find . -type f -not -path "*/node_modules/*" -not -path "*/.quarto/*" -not -name "*.ipynb" -not -name ".gitignore" -exec cp --parents {} temp_website/ \; + gh-release: if: github.event_name != 'pull_request' runs-on: ubuntu-latest @@ -101,7 +109,7 @@ jobs: mkdir -p temp_website # Copy files except .ipynb, node_modules, .quarto, and .gitignore - find website -type f -not -path "*/node_modules/*" -not -path "*/.quarto/*" -not -name "*.ipynb" -not -name ".gitignore" -exec cp --parents {} temp_website/ \; + find . -type f -not -path "*/node_modules/*" -not -path "*/.quarto/*" -not -name "*.ipynb" -not -name ".gitignore" -exec cp --parents {} temp_website/ \; - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3