[CI] update the version of macos. #1231
Workflow file for this run
This file contains hidden or 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: Build Docs | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy_docs: | |
name: Deploy Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: 'pip' | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0' | |
- name: Installing dependencies | |
run: | | |
python -m pip install -r docs/requirements.txt | |
gem install jekyll jekyll-remote-theme | |
- name: Deploying on GitHub Pages | |
if: github.ref == 'refs/heads/main' && github.repository_owner == 'mlc-ai' | |
run: | | |
git remote set-url origin https://x-access-token:${{ secrets.MLC_GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git config --global user.email "mlc-gh-actions-bot@nomail" | |
git config --global user.name "mlc-gh-actions-bot" | |
./scripts/gh_deploy_site.sh |