Support enums, smallintegers and add around mysql column names #35
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: Github IO | |
on: | |
push: | |
branches: [main, ci] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
erd/target | |
erd-wasm/target | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Install wasm-pack | |
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | |
- name: Run wasm pack | |
run: wasm-pack build --target web | |
working-directory: erd-wasm | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: "0.4.12" | |
- run: mdbook build -d ../output | |
working-directory: book | |
- name: Move all file to live folder | |
run: | | |
mkdir live | |
cp -r ../erd-wasm/pkg live/pkg | |
cp ../erd-wasm/er.html live | |
cp ../erd-wasm/physical.html live | |
cp ../erd-wasm/viz.js live | |
cp ../erd-wasm/full.render.js live | |
rm live/pkg/.gitignore | |
working-directory: output | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: output # The folder the action should deploy. | |
CLEAN: true # Automatically remove deleted files from the deploy branch |