aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorblinkov <blinkov@yandex-team.com>2023-10-02 18:05:26 +0300
committerblinkov <blinkov@yandex-team.com>2023-10-02 19:04:38 +0300
commit711558a70897b63bda46b043bd23b3a576b8a074 (patch)
tree978caca323761f917308131376777737540fbf16 /.github/workflows
parentb01fb389ee455a5f790f4956fae1167e0110690e (diff)
downloadydb-711558a70897b63bda46b043bd23b3a576b8a074.tar.gz
Move .github/actions/docs to .github/workflows/docs
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/docs/build.yaml23
-rw-r--r--.github/workflows/docs/release.yaml23
2 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/docs/build.yaml b/.github/workflows/docs/build.yaml
new file mode 100644
index 0000000000..7f95b2463f
--- /dev/null
+++ b/.github/workflows/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/workflows/docs/release.yaml b/.github/workflows/docs/release.yaml
new file mode 100644
index 0000000000..4a6c04c544
--- /dev/null
+++ b/.github/workflows/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