Skip to content

add models.html to deploy skip list (#54) #84

add models.html to deploy skip list (#54)

add models.html to deploy skip list (#54) #84

Workflow file for this run

# GH actions.
name: Build_Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: mlc
environment-file: static/build.yml
- name: Conda info
run: |
conda info
conda list
- name: Install dependencies
run: |
conda install pandoc
pip install git+https://github.com/d2l-ai/d2l-book
- name: Build
run: |
d2lbook build html
- name: Site-Checkout
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.MLC_GITHUB_TOKEN }}
run: |
git clone https://[email protected]/mlc-ai/mlc-ai.github.io
cd mlc-ai.github.io
git config user.name mlc-bot
git config user.email [email protected]
cd ..
- name: Deploy
if: github.ref == 'refs/heads/main'
env:
GITHUB_TOKEN: ${{ secrets.MLC_GITHUB_TOKEN }}
run: |
python static/update_site.py --site-path mlc-ai.github.io --source-path _build/html