docs.yml 912 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: 20
  16. - name: Build
  17. run: |
  18. sudo apt update && sudo apt install libfontconfig1-dev
  19. yarn cache clean
  20. cd app
  21. yarn
  22. cd ..
  23. rm app/node_modules/.yarn-integrity
  24. yarn
  25. yarn run build:typings
  26. yarn run docs
  27. env:
  28. DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}
  29. - uses: FirebaseExtended/action-hosting-deploy@v0
  30. with:
  31. repoToken: '${{ secrets.GITHUB_TOKEN }}'
  32. firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TABBY_DOCS }}'
  33. channelId: live
  34. projectId: tabby-docs