swc/.github/workflows/docs.yml
Donny/강동윤 4f23d651d1
fix(es/minifier): Consider capturing while inlining (#3322)
swc_ecma_minifier:
 - Don't inline functions if it captures the environment.
2022-01-21 10:24:41 +09:00

40 lines
835 B
YAML

name: Docs
on:
push:
branches:
- "main"
jobs:
rustdoc:
name: Rustdoc
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
- name: Create rustdoc
run: cargo doc --all
- name: Create CNAME
run: |
echo 'rustdoc.swc.rs' > target/doc/CNAME
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@4.1.8
with:
token: ${{ secrets.GH_TOKEN }}
branch: gh-pages
folder: target/doc
clean: true
git-config-email: github-bot@swc.rs
repository-name: swc-project/rustdoc
commit-message: "Update"
single-commit: true