From 310326908566cb4e6973a46c0fdbed6e39a6e537 Mon Sep 17 00:00:00 2001 From: Ottatop Date: Mon, 19 Feb 2024 18:57:41 -0600 Subject: [PATCH] Move docs to other repos --- .github/workflows/ldoc.yml | 6 +++--- .github/workflows/rustdoc.yml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ldoc.yml b/.github/workflows/ldoc.yml index 894a1b7..da4763f 100644 --- a/.github/workflows/ldoc.yml +++ b/.github/workflows/ldoc.yml @@ -45,7 +45,7 @@ jobs: - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + deploy_key: ${{ secrets.DOCS_DEPLOY_KEY_LUA }} + external_repository: pinnacle-comp/lua-reference publish_dir: ../ldoc_gen/.ldoc_gen/doc - destination_dir: ${{ env.BRANCH_NAME }}/lua - # force_orphan: true + force_orphan: true diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index cfd5390..f29562e 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -25,12 +25,13 @@ jobs: - name: Get protoc run: sudo apt install protobuf-compiler - name: Build docs - run: cd ./api/rust && cargo doc + run: cd ./api/rust && cargo doc --no-deps -p pinnacle-api -p tokio -p xkbcommon - name: Create index.html run: echo "" > ./target/doc/index.html - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + deploy_key: ${{ secrets.DOCS_DEPLOY_KEY_RUST }} + external_repository: pinnacle-comp/rust-reference publish_dir: ./target/doc - destination_dir: ${{ env.BRANCH_NAME }}/rust + force-orphan: true