Skip to content

Commit 8b0f2e6

Browse files
committed
Create worflow to publish latest docs to iced-rs/docs
1 parent 92a699b commit 8b0f2e6

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/document.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Document
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
all:
8+
runs-on: ubuntu-20.04
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
steps:
12+
- uses: hecrj/setup-rust-action@v1
13+
- uses: actions/checkout@v2
14+
- name: Generate documentation
15+
run: |
16+
cargo doc --no-deps --all-features \
17+
-p iced_core \
18+
-p iced_native \
19+
-p iced_lazy \
20+
-p iced_web \
21+
-p iced_graphics \
22+
-p iced_wgpu \
23+
-p iced_glow \
24+
-p iced_winit \
25+
-p iced_glutin \
26+
-p iced
27+
- name: Publish documentation
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
31+
external_repository: iced-rs/docs
32+
publish_dir: ./target/doc

0 commit comments

Comments
 (0)