From 8b0f2e62db03ff4395e6aef5a6d5a5c502ca02de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Wed, 19 Jan 2022 21:59:45 +0700 Subject: [PATCH] Create worflow to publish latest docs to `iced-rs/docs` --- .github/workflows/document.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/document.yml diff --git a/.github/workflows/document.yml b/.github/workflows/document.yml new file mode 100644 index 0000000000..598712603d --- /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