Initial commit
This commit is contained in:
commit
b967b222b1
11 changed files with 158 additions and 0 deletions
27
.github/workflows/publish.yaml
vendored
Normal file
27
.github/workflows/publish.yaml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: "Publish"
|
||||
on:
|
||||
# Run only when pushing to master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
neuron:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Download neuron
|
||||
run: |
|
||||
curl --silent https://api.github.com/repos/srid/neuron/actions/artifacts \
|
||||
| jq 'first(.artifacts | .[] | select(.name == "neuron-bundle-linux") | .archive_download_url)' -r \
|
||||
| xargs curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" --silent -L -o neuron-bundle-linux.zip
|
||||
unzip neuron-bundle-linux.zip
|
||||
chmod +x neuron
|
||||
./neuron --version # This extracts the bundle; should take a while
|
||||
- name: Build neuron site 🔧
|
||||
run: |
|
||||
./neuron -d $PWD rib
|
||||
- name: Deploy to gh-pages 🚀
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: .neuron/output/
|
Loading…
Add table
Add a link
Reference in a new issue