aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/docs_release.yaml
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@ydb.tech>2023-10-04 19:49:35 +0700
committerGitHub <noreply@github.com>2023-10-04 19:49:35 +0700
commit98f998c7a31152ee2af3df00f0f1b0ac02314797 (patch)
treea86672c043128efa03d7f455cb2f209121c402a7 /.github/workflows/docs_release.yaml
parentab48a9b311e609cbd8a14d5a4ca4ac887984b80a (diff)
downloadydb-98f998c7a31152ee2af3df00f0f1b0ac02314797.tar.gz
Create docs_release.yamlstable-23-2
Diffstat (limited to '.github/workflows/docs_release.yaml')
-rw-r--r--.github/workflows/docs_release.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/docs_release.yaml b/.github/workflows/docs_release.yaml
new file mode 100644
index 0000000000..f34cd69049
--- /dev/null
+++ b/.github/workflows/docs_release.yaml
@@ -0,0 +1,32 @@
+name: Release documentation
+
+on:
+ push:
+ branches:
+ - 'main'
+ - 'stable-**'
+ workflow_dispatch:
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Extract version
+ shell: bash
+ run: echo "version=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" | sed -e 's|stable-|v|g' -e 's|-|.|g' >> $GITHUB_OUTPUT
+ id: extract_version
+ - name: Release
+ uses: diplodoc-platform/docs-release-action@v1
+ with:
+ revision: "${{ github.sha }}"
+ version: "${{ steps.extract_version.outputs.version }}"
+ 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