-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (35 loc) · 1.22 KB
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Docs
on:
schedule:
- cron: '0 0 * * */1'
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/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: target/doc
clean: true
git-config-email: [email protected]
repository-name: swc-project/rustdoc
commit-message: "Update"
single-commit: true