aboutsummaryrefslogtreecommitdiffstats
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
parentf164b194f96739a9e5fca51a6f4c44e641ec85ec (diff)
downloadydb-b01fb389ee455a5f790f4956fae1167e0110690e.tar.gz
Add new docs deployment method
-rw-r--r--.github/actions/docs/build.yaml23
-rw-r--r--.github/actions/docs/release.yaml23
-rw-r--r--.mapping.json2
3 files changed, 48 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
diff --git a/.github/actions/docs/release.yaml b/.github/actions/docs/release.yaml
new file mode 100644
index 0000000000..4a6c04c544
--- /dev/null
+++ b/.github/actions/docs/release.yaml
@@ -0,0 +1,23 @@
+name: Release documentation
+
+on:
+ workflow_dispatch:
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Release
+ uses: diplodoc-platform/docs-release-action@v1
+ with:
+ revision: "${{ github.sha }}"
+ 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
diff --git a/.mapping.json b/.mapping.json
index 48407d3124..8dd40ff998 100644
--- a/.mapping.json
+++ b/.mapping.json
@@ -1,5 +1,7 @@
{
".github/actions/build/action.yml":"ydb/github_toplevel/.github/actions/build/action.yml",
+ ".github/actions/docs/build.yaml":"ydb/github_toplevel/.github/actions/docs/build.yaml",
+ ".github/actions/docs/release.yaml":"ydb/github_toplevel/.github/actions/docs/release.yaml",
".github/actions/prepare_vm/action.yaml":"ydb/github_toplevel/.github/actions/prepare_vm/action.yaml",
".github/actions/test/action.yml":"ydb/github_toplevel/.github/actions/test/action.yml",
".github/check_dirs.sh":"ydb/github_toplevel/.github/check_dirs.sh",