1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-27 04:25:05 +03:00
tabby/.github/workflows/docs.yml

35 lines
772 B
YAML
Raw Normal View History

2019-08-26 23:03:36 +03:00
name: Docs
on: push
jobs:
build:
runs-on: ubuntu-18.04
2021-05-25 00:30:05 +03:00
if: ${{ github.actor != 'dependabot[bot]' }}
2019-08-26 23:03:36 +03:00
steps:
- name: Checkout
2021-05-16 14:53:13 +03:00
uses: actions/checkout@v2.3.4
with:
fetch-depth: 0
2019-08-26 23:03:36 +03:00
- name: Installing Node
uses: actions/setup-node@v2.1.5
2019-08-26 23:03:36 +03:00
with:
2021-05-16 19:58:46 +03:00
node-version: 14
2019-08-26 23:03:36 +03:00
- name: Build
run: |
2019-08-26 23:08:00 +03:00
eval $(ssh-agent -s)
2019-08-26 23:03:36 +03:00
ssh-add <(echo "$DOCS_PRIVATE_KEY")
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
rsync -e "ssh -o StrictHostKeyChecking=no" -arv docs/api/ root@ajenti.org:/srv/terminus-docs/
env:
DOCS_PRIVATE_KEY: ${{ secrets.DOCS_PRIVATE_KEY }}