2019-08-26 20:03:36 +00:00
|
|
|
name: Docs
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Installing Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-03-01 12:26:40 +00:00
|
|
|
node-version: 10
|
2019-08-26 20:03:36 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2019-08-26 20:08:00 +00:00
|
|
|
eval $(ssh-agent -s)
|
2019-08-26 20:03:36 +00:00
|
|
|
ssh-add <(echo "$DOCS_PRIVATE_KEY")
|
2019-10-11 22:25:08 +00:00
|
|
|
yarn cache clean
|
2019-10-11 22:10:22 +00:00
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
2019-08-26 20:03:36 +00:00
|
|
|
yarn
|
2021-03-04 08:42:46 +00:00
|
|
|
yarn run build:typings
|
2019-08-26 20:03:36 +00: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 }}
|