Docs #13767
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: Docs | |
on: | |
schedule: | |
- cron: '0 * * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
rustdoc: | |
name: Rustdoc | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: 'swc-project/swc' | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
- name: Create rustdoc | |
run: cargo doc --all --features ecma_plugin_transform --features ecma_loader --features ecma_utils --features ecma_quote --features ecma_visit --features ecma_transforms --features __testing_transform --features css_compat --features css_codegen --features css_minifier --features css_prefixer --features css_parser --features common_tty --no-deps -Zunstable-options -Zrustdoc-scrape-examples | |
- name: Create CNAME | |
run: | | |
echo 'rustdoc.swc.rs' > target/doc/CNAME | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.1.8 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages | |
folder: target/doc | |
clean: true | |
git-config-email: bot@swc.rs | |
repository-name: swc-project/rustdoc | |
commit-message: "Update" | |
single-commit: true |