Publish showcase docs #5
Workflow file for this run
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: Publish | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
publish: | |
name: Generate and publish docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install magic CLI | |
run: | | |
curl -ssL https://magic.modular.com | bash | |
source /home/runner/.bash_profile | |
- name: Clone stdlib | |
run: | | |
git clone https://github.com/modularml/mojo.git --depth=1 | |
- name: Install mojo and dependencies | |
run: | | |
cd mojo | |
source /home/runner/.bash_profile | |
magic install --locked | |
- name: Generate JSON docs | |
run: | | |
magic run mojo doc -o ../stdlib.json stdlib/src | |
cd .. |