diff options
author | blinkov <blinkov@yandex-team.com> | 2023-10-03 06:05:32 +0300 |
---|---|---|
committer | blinkov <blinkov@yandex-team.com> | 2023-10-03 06:23:02 +0300 |
commit | 4d5ff32fb5b9e5535c9b04e023226161b38f4be4 (patch) | |
tree | 67849af4465fb1296d570bd28b1a64a97615951e | |
parent | b6cf512eeb213d517b81a73d24db44cb9bc34b61 (diff) | |
download | ydb-4d5ff32fb5b9e5535c9b04e023226161b38f4be4.tar.gz |
trigger docs release on push
-rw-r--r-- | .github/workflows/docs_release.yaml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/docs_release.yaml b/.github/workflows/docs_release.yaml index 4a6c04c544..befc1eb234 100644 --- a/.github/workflows/docs_release.yaml +++ b/.github/workflows/docs_release.yaml @@ -1,6 +1,10 @@ name: Release documentation on: + push: + branches: + - 'main' + - 'stable-**' workflow_dispatch: jobs: @@ -9,10 +13,15 @@ jobs: 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 + uses: blinkov/docs-release-action@main 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 }} |