Update publish-neuron.yml
This commit is contained in:
parent
4b5f4a9173
commit
50fb035d00
1 changed files with 5 additions and 7 deletions
12
.github/workflows/publish-neuron.yml
vendored
12
.github/workflows/publish-neuron.yml
vendored
|
@ -10,18 +10,16 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build neuron site 🔧
|
- name: Build neuron site 🔧
|
||||||
run: |
|
run: |
|
||||||
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"
|
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:"
|
echo "Copying generated files..."
|
||||||
ls -R
|
mkdir -p ../../.neuron/output
|
||||||
echo "Moving .neuron directory..."
|
docker cp $(docker ps -lq):/notes/.neuron/output/. ../../.neuron/output/
|
||||||
mv .neuron ../../.neuron
|
|
||||||
cd ../..
|
cd ../..
|
||||||
echo "Contents of .neuron directory:"
|
echo "Contents of .neuron/output directory:"
|
||||||
ls -R .neuron
|
ls -R .neuron/output
|
||||||
- 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