docs_release.yaml 1.2 KB

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