From 50fb035d0053f67b2e8aa5d33aafa7f8e467c781 Mon Sep 17 00:00:00 2001 From: Thomas Bishop Date: Sun, 20 Oct 2024 19:33:32 +0100 Subject: [PATCH] Update publish-neuron.yml --- .github/workflows/publish-neuron.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-neuron.yml b/.github/workflows/publish-neuron.yml index 37e251d..123134a 100644 --- a/.github/workflows/publish-neuron.yml +++ b/.github/workflows/publish-neuron.yml @@ -10,18 +10,16 @@ jobs: - uses: actions/checkout@v2 - name: Build neuron site 🔧 run: | - mkdir -p .neuron/output && touch .neuron/output/.nojekyll NEURON_DIR=$(ls -d neuron/*/ | head -n 1) echo "Neuron directory: $NEURON_DIR" cd $NEURON_DIR docker run -v $PWD:/notes sridca/neuron neuron gen --pretty-urls - echo "Contents of current directory after Neuron generation:" - ls -R - echo "Moving .neuron directory..." - mv .neuron ../../.neuron + echo "Copying generated files..." + mkdir -p ../../.neuron/output + docker cp $(docker ps -lq):/notes/.neuron/output/. ../../.neuron/output/ cd ../.. - echo "Contents of .neuron directory:" - ls -R .neuron + echo "Contents of .neuron/output directory:" + ls -R .neuron/output - name: Deploy to gh-pages 🚀 uses: peaceiris/actions-gh-pages@v3 with: