From 8c0d681345789dd835fa315dc878613564fbba0e Mon Sep 17 00:00:00 2001 From: jai-jap Date: Mon, 21 Mar 2022 15:50:14 +0530 Subject: [PATCH] Revert "Delete docs.yml" This reverts commit f18c1f6d3aed932ef43116651c73e09863afabf0. --- .github/workflows/docs.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..14712dfe --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,38 @@ +name: Docs +on: push +jobs: + build: + runs-on: ubuntu-latest + if: ${{ github.actor != 'dependabot[bot]' }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Installing Node + uses: actions/setup-node@v3.0.0 + with: + node-version: 14 + + - name: Build + run: | + yarn cache clean + cd app + yarn + cd .. + rm app/node_modules/.yarn-integrity + yarn + yarn run build:typings + yarn run docs + + env: + DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }} + + - uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TABBY_DOCS }}' + channelId: live + projectId: tabby-docs