chore(nix): added SQLC package. #256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: mdbook | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install Dependencies | |
run: | | |
npm install -g pagecrypt surge | |
mkdir mdbook | |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook | |
echo `pwd`/mdbook >> $GITHUB_PATH | |
- name: Build docs | |
run: mdbook build ./docs | |
- name: Password protect docs | |
run: | | |
for f in $(find ./docs/book -name '*.html'); do pagecrypt $f $f ctrlplane; done | |
- name: Deploy docs | |
run: surge ./docs/book small-thought.surge.sh --token c05963fcb7455e0ec3008d27dc4d6816 |