summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-19 21:59:45 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-19 22:04:27 +0700
commit8b0f2e62db03ff4395e6aef5a6d5a5c502ca02de (patch)
tree83bbcb345d68a2f2e574173e91d0abfe9155167e /.github/workflows
parent92a699b97dacd4c40316b67e20b6a3a777a1de64 (diff)
downloadiced-8b0f2e62db03ff4395e6aef5a6d5a5c502ca02de.tar.gz
iced-8b0f2e62db03ff4395e6aef5a6d5a5c502ca02de.tar.bz2
iced-8b0f2e62db03ff4395e6aef5a6d5a5c502ca02de.zip
Create worflow to publish latest docs to `iced-rs/docs`
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/document.yml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml
new file mode 100644
index 00000000..59871260
--- /dev/null
+++ b/.github/workflows/document.yml
@@ -0,0 +1,32 @@
+name: Document
+on:
+ push:
+ branches:
+ - master
+jobs:
+ all:
+ runs-on: ubuntu-20.04
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.ref }}
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ - uses: actions/checkout@v2
+ - name: Generate documentation
+ run: |
+ cargo doc --no-deps --all-features \
+ -p iced_core \
+ -p iced_native \
+ -p iced_lazy \
+ -p iced_web \
+ -p iced_graphics \
+ -p iced_wgpu \
+ -p iced_glow \
+ -p iced_winit \
+ -p iced_glutin \
+ -p iced
+ - name: Publish documentation
+ uses: peaceiris/actions-gh-pages@v3
+ with:
+ deploy_key: ${{ secrets.DOCS_DEPLOY_KEY }}
+ external_repository: iced-rs/docs
+ publish_dir: ./target/doc