2019-08-26 23:03:36 +03:00
|
|
|
name: Docs
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-10-04 13:37:44 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-25 00:30:05 +03:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2019-08-26 23:03:36 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-02 07:18:24 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-05-16 14:53:13 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2019-08-26 23:03:36 +03:00
|
|
|
|
|
|
|
- name: Installing Node
|
2022-05-17 07:12:32 +03:00
|
|
|
uses: actions/setup-node@v3.2.0
|
2019-08-26 23:03:36 +03:00
|
|
|
with:
|
2022-04-30 21:35:07 +03:00
|
|
|
node-version: 16
|
2019-08-26 23:03:36 +03:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2019-10-12 01:25:08 +03:00
|
|
|
yarn cache clean
|
2019-10-12 01:10:22 +03:00
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
2019-08-26 23:03:36 +03:00
|
|
|
yarn
|
2021-03-04 11:42:46 +03:00
|
|
|
yarn run build:typings
|
2019-08-26 23:03:36 +03:00
|
|
|
yarn run docs
|
|
|
|
|
|
|
|
env:
|
|
|
|
DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}
|
2021-09-25 01:36:21 +03:00
|
|
|
|
|
|
|
- uses: FirebaseExtended/action-hosting-deploy@v0
|
|
|
|
with:
|
|
|
|
repoToken: '${{ secrets.GITHUB_TOKEN }}'
|
|
|
|
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_TABBY_DOCS }}'
|
|
|
|
channelId: live
|
|
|
|
projectId: tabby-docs
|