1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-22 03:26:09 +03:00

setup docs deployment

This commit is contained in:
Eugene Pankov 2021-09-25 00:36:21 +02:00
parent be39591c54
commit c4a1d8aa56
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
2 changed files with 17 additions and 3 deletions

View File

@ -18,8 +18,6 @@ jobs:
- name: Build - name: Build
run: | run: |
eval $(ssh-agent -s)
ssh-add <(echo "$DOCS_PRIVATE_KEY")
yarn cache clean yarn cache clean
cd app cd app
yarn yarn
@ -28,7 +26,13 @@ jobs:
yarn yarn
yarn run build:typings yarn run build:typings
yarn run docs yarn run docs
rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
env: env:
DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }} 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

10
firebase.json Normal file
View File

@ -0,0 +1,10 @@
{
"hosting": {
"public": "docs/api",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
}