Skip to content

Update site favicon #68

Update site favicon

Update site favicon #68

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/zh
cd zh
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 zh --source-path _build/html