Merge branch 'master' of github.com:thomasabishop/eolas
This commit is contained in:
commit
cae1f3647f
1 changed files with 11 additions and 4 deletions
15
.github/workflows/publish-neuron.yml
vendored
15
.github/workflows/publish-neuron.yml
vendored
|
@ -2,7 +2,7 @@ name: "Publish Neuron Site"
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master # or your main branch name
|
||||
- master
|
||||
jobs:
|
||||
neuron:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -10,9 +10,16 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- name: Build neuron site 🔧
|
||||
run: |
|
||||
mkdir -p .neuron/output && touch .neuron/output/.nojekyll
|
||||
NEURON_FILE=$(ls eolas/neuron/*.md | head -n 1)
|
||||
docker run -v $PWD:/notes sridca/neuron neuron gen --pretty-urls /notes/$NEURON_FILE
|
||||
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 "Copying generated files..."
|
||||
mkdir -p ../../.neuron/output
|
||||
docker cp $(docker ps -lq):/notes/.neuron/output/. ../../.neuron/output/
|
||||
cd ../..
|
||||
echo "Contents of .neuron/output directory:"
|
||||
ls -R .neuron/output
|
||||
- name: Deploy to gh-pages 🚀
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Reference in a new issue