wiki/.github/workflows/generate-site.yaml
Gabriel Arazas b088086b06 Merge evergreen notes into the notebook
Now, it's all under the notebook umbrella. Seems to be appropriate as it
is just my notes after all.

I also updated some notes from there. I didn't keep track of what it is
this time. Something about more learning notes extracted from my
"Learning how to learn" course notes and then some. Lack of time and
hurriness just makes it difficult to track but it should be under
version control already.
2021-07-21 16:28:07 +08:00

31 lines
828 B
YAML

name: Generate site to GitHub pages
on: [push]
jobs:
generate-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Setup for static site generation
uses: workflow/nix-shell-action@v1
with:
packages: nodejs,coreutils
script: |
mkdir -p site/public
mv notebook/* site/public
cd site
npm install
npm run build
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
jekyll: false
target_branch: gh-pages
build_dir: site/out
env:
GITHUB_TOKEN: ${{ secrets.PAGES_TOKEN }}