only publish on tag #7026
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
node-version: 20 | |
- name: Build | |
run: | | |
sudo apt update && sudo apt install libfontconfig1-dev | |
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 |