docs_preview.yaml 937 B

123456789101112131415161718192021222324252627282930
  1. name: Preview documentation
  2. on:
  3. workflow_run:
  4. workflows:
  5. - Build documentation
  6. types:
  7. - completed
  8. jobs:
  9. post-build:
  10. permissions: write-all
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Upload
  14. uses: diplodoc-platform/docs-upload-action@v1
  15. if: github.event.workflow_run.conclusion == 'success'
  16. with:
  17. github-token: ${{ secrets.GITHUB_TOKEN }}
  18. storage-endpoint: ${{ vars.DOCS_AWS_ENDPOINT }}
  19. storage-region: ${{ vars.DOCS_AWS_REGION }}
  20. storage-bucket: ${{ vars.DIPLODOC_STORAGE_BUCKET }}
  21. storage-access-key-id: ${{ secrets.DOCS_AWS_KEY_ID }}
  22. storage-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
  23. - name: Comment message
  24. uses: diplodoc-platform/docs-message-action@v1
  25. with:
  26. github-token: ${{ secrets.GITHUB_TOKEN }}
  27. project-link: ${{ vars.DIPLODOC_PROJECT_LINK }}