Update publish-neuron.yml

This commit is contained in:
Thomas Bishop 2024-10-20 19:31:07 +01:00 committed by GitHub
parent dda19934db
commit 4b5f4a9173

View file

@ -12,9 +12,16 @@ jobs:
run: | run: |
mkdir -p .neuron/output && touch .neuron/output/.nojekyll mkdir -p .neuron/output && touch .neuron/output/.nojekyll
NEURON_DIR=$(ls -d neuron/*/ | head -n 1) NEURON_DIR=$(ls -d neuron/*/ | head -n 1)
echo "Neuron directory: $NEURON_DIR"
cd $NEURON_DIR cd $NEURON_DIR
docker run -v $PWD:/notes sridca/neuron neuron gen --pretty-urls 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 mv .neuron ../../.neuron
cd ../..
echo "Contents of .neuron directory:"
ls -R .neuron
- name: Deploy to gh-pages 🚀 - name: Deploy to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3 uses: peaceiris/actions-gh-pages@v3
with: with: