aboutsummaryrefslogtreecommitdiffstats
path: root/.github/actions/docs/build.yaml
diff options
context:
space:
mode:
authorblinkov <blinkov@yandex-team.com>2023-10-02 17:26:33 +0300
committerblinkov <blinkov@yandex-team.com>2023-10-02 18:41:20 +0300
commitb01fb389ee455a5f790f4956fae1167e0110690e (patch)
treeb99d9b2fa45ab06997e7b8d7c44184ace0e37c16 /.github/actions/docs/build.yaml
parentf164b194f96739a9e5fca51a6f4c44e641ec85ec (diff)
downloadydb-b01fb389ee455a5f790f4956fae1167e0110690e.tar.gz
Add new docs deployment method
Diffstat (limited to '.github/actions/docs/build.yaml')
-rw-r--r--.github/actions/docs/build.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/actions/docs/build.yaml b/.github/actions/docs/build.yaml
new file mode 100644
index 0000000000..7f95b2463f
--- /dev/null
+++ b/.github/actions/docs/build.yaml
@@ -0,0 +1,23 @@
+name: Build documentation
+
+on:
+ pull_request:
+
+jobs:
+ build-docs:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Build
+ uses: diplodoc-platform/docs-build-action@v1
+ with:
+ revision: "pr-${{ github.event.pull_request.number }}"
+ project-name: ${{ secrets.DOCS_PROJECT_NAME }}
+ src-root: ${{ vars.SRC_ROOT }}
+ storage-bucket: ${{ secrets.DOCS_AWS_BUCKET }}
+ storage-endpoint: ${{ vars.DOCS_AWS_ENDPOINT }}
+ storage-access-key-id: ${{ secrets.DOCS_AWS_KEY_ID }}
+ storage-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
+ storage-region: ${{ vars.DOCS_AWS_REGION }}
+ shared-storage-bucket: true