docs.yml 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Docs
  2. on: push
  3. jobs:
  4. build:
  5. runs-on: ubuntu-latest
  6. if: ${{ github.actor != 'dependabot[bot]' }}
  7. steps:
  8. - name: Checkout
  9. uses: actions/checkout@v3
  10. with:
  11. fetch-depth: 0
  12. - name: Installing Node
  13. uses: actions/[email protected]
  14. with:
  15. node-version: 16
  16. - name: Build
  17. run: |
  18. yarn cache clean
  19. cd app
  20. yarn
  21. cd ..
  22. rm app/node_modules/.yarn-integrity
  23. yarn
  24. yarn run build:typings
  25. yarn run docs
  26. env:
  27. DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}
  28. - uses: FirebaseExtended/action-hosting-deploy@v0
  29. with:
  30. repoToken: '${{ secrets.GITHUB_TOKEN }}'
  31. firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TABBY_DOCS }}'
  32. channelId: live
  33. projectId: tabby-docs