name: publish on: push: branches: - main 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 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/ cname: zettel.thermokar.st