diff options
author | blinkov <blinkov@yandex-team.com> | 2023-10-02 18:05:26 +0300 |
---|---|---|
committer | blinkov <blinkov@yandex-team.com> | 2023-10-02 19:04:38 +0300 |
commit | 711558a70897b63bda46b043bd23b3a576b8a074 (patch) | |
tree | 978caca323761f917308131376777737540fbf16 /.github/workflows | |
parent | b01fb389ee455a5f790f4956fae1167e0110690e (diff) | |
download | ydb-711558a70897b63bda46b043bd23b3a576b8a074.tar.gz |
Move .github/actions/docs to .github/workflows/docs
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/docs/build.yaml | 23 | ||||
-rw-r--r-- | .github/workflows/docs/release.yaml | 23 |
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 |