Update publish-neuron.yml
This commit is contained in:
parent
780675f746
commit
dda19934db
1 changed files with 3 additions and 7 deletions
10
.github/workflows/publish-neuron.yml
vendored
10
.github/workflows/publish-neuron.yml
vendored
|
@ -12,13 +12,9 @@ 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)
|
||||||
if [ -n "$NEURON_DIR" ]; then
|
cd $NEURON_DIR
|
||||||
echo "Found Neuron directory: $NEURON_DIR"
|
docker run -v $PWD:/notes sridca/neuron neuron gen --pretty-urls
|
||||||
docker run -v $PWD:/notes sridca/neuron neuron gen --pretty-urls /neuron/$(ls -d neuron/*/ | sed 's/neuron\///' | sed 's/\///' | head -n 1)
|
mv .neuron ../../.neuron
|
||||||
else
|
|
||||||
echo "No subdirectory found in neuron/"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
- name: Deploy to gh-pages 🚀
|
- name: Deploy to gh-pages 🚀
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Reference in a new issue