From debf06fa0343dfd522385eb6a8afc8f31f0a113b Mon Sep 17 00:00:00 2001 From: Harish Mohan Raj Date: Thu, 19 Dec 2024 06:41:10 +0000 Subject: [PATCH 1/2] Add debugging messages --- .github/workflows/deploy-website.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 95edfad788..5e4275abb3 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -57,6 +57,20 @@ jobs: python ./process_notebooks.py render working-directory: website + - name: Prepare website content + run: | + # Print working directory + pwd + + # List contents of current directory + ls -la + + # Create a temporary directory for filtered content + 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/ \; + gh-release: if: github.event_name != 'pull_request' runs-on: ubuntu-latest @@ -97,6 +111,12 @@ jobs: - name: Prepare website content run: | + # Print working directory + pwd + + # List contents of current directory + ls -la + # Create a temporary directory for filtered content mkdir -p temp_website From 52026e4752e9f2a200073953f18f7416483e6690 Mon Sep 17 00:00:00 2001 From: Harish Mohan Raj Date: Thu, 19 Dec 2024 06:48:59 +0000 Subject: [PATCH 2/2] Fix workflow --- .github/workflows/deploy-website.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-website.yml b/.github/workflows/deploy-website.yml index 5e4275abb3..3d20ca18c9 100644 --- a/.github/workflows/deploy-website.yml +++ b/.github/workflows/deploy-website.yml @@ -59,17 +59,11 @@ jobs: - name: Prepare website content run: | - # Print working directory - pwd - - # List contents of current directory - ls -la - # Create a temporary directory for filtered content 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/ \; gh-release: if: github.event_name != 'pull_request' @@ -111,17 +105,11 @@ jobs: - name: Prepare website content run: | - # Print working directory - pwd - - # List contents of current directory - ls -la - # Create a temporary directory for filtered content 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