docs_release.yaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Release documentation
  2. on:
  3. push:
  4. branches:
  5. - 'main'
  6. - 'stable-**'
  7. paths:
  8. - 'ydb/docs/**'
  9. workflow_dispatch:
  10. jobs:
  11. release:
  12. concurrency:
  13. group: release-documentation-${{ github.ref }}
  14. cancel-in-progress: true
  15. runs-on: ubuntu-latest
  16. steps:
  17. - name: Checkout
  18. uses: actions/checkout@v3
  19. - name: Extract version
  20. shell: bash
  21. run: echo "version=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" | sed -e 's|stable-|v|g' -e 's|-|.|g' >> $GITHUB_OUTPUT
  22. id: extract_version
  23. - name: Release
  24. uses: diplodoc-platform/docs-release-action@v1
  25. with:
  26. revision: "${{ github.sha }}"
  27. version: "${{ steps.extract_version.outputs.version }}"
  28. project-name: ${{ secrets.DOCS_PROJECT_NAME }}
  29. src-root: ${{ vars.SRC_ROOT }}
  30. storage-bucket: ${{ secrets.DOCS_AWS_BUCKET }}
  31. storage-endpoint: ${{ vars.DOCS_AWS_ENDPOINT }}
  32. storage-access-key-id: ${{ secrets.DOCS_AWS_KEY_ID }}
  33. storage-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
  34. storage-region: ${{ vars.DOCS_AWS_REGION }}
  35. shared-storage-bucket: true