eolas/.github/workflows/publish-neuron.yml
2024-10-20 19:31:07 +01:00

29 lines
882 B
YAML

name: "Publish Neuron Site"
on:
push:
branches:
- master
jobs:
neuron:
runs-on: ubuntu-latest
steps:
- 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
cd ../..
echo "Contents of .neuron directory:"
ls -R .neuron
- name: Deploy to gh-pages 🚀
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .neuron/output/