docs.yml 772 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Docs
  2. on: push
  3. jobs:
  4. build:
  5. runs-on: ubuntu-18.04
  6. if: ${{ github.actor != 'dependabot[bot]' }}
  7. steps:
  8. - name: Checkout
  9. uses: actions/[email protected]
  10. with:
  11. fetch-depth: 0
  12. - name: Installing Node
  13. uses: actions/[email protected]
  14. with:
  15. node-version: 14
  16. - name: Build
  17. run: |
  18. eval $(ssh-agent -s)
  19. ssh-add <(echo "$DOCS_PRIVATE_KEY")
  20. yarn cache clean
  21. cd app
  22. yarn
  23. cd ..
  24. rm app/node_modules/.yarn-integrity
  25. yarn
  26. yarn run build:typings
  27. yarn run docs
  28. rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ [email protected]:/srv/terminus-docs/
  29. env:
  30. DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}