2019-08-27 04:03:36 +08:00
|
|
|
name: Docs
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-18.04
|
2021-05-25 05:30:05 +08:00
|
|
|
if: ${{ github.actor != 'dependabot[bot]' }}
|
2019-08-27 04:03:36 +08:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2021-05-16 19:53:13 +08:00
|
|
|
uses: actions/checkout@v2.3.4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2019-08-27 04:03:36 +08:00
|
|
|
|
|
|
|
- name: Installing Node
|
2021-08-06 12:19:59 +08:00
|
|
|
uses: actions/setup-node@v2.4.0
|
2019-08-27 04:03:36 +08:00
|
|
|
with:
|
2021-05-17 00:58:46 +08:00
|
|
|
node-version: 14
|
2019-08-27 04:03:36 +08:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2019-08-27 04:08:00 +08:00
|
|
|
eval $(ssh-agent -s)
|
2019-08-27 04:03:36 +08:00
|
|
|
ssh-add <(echo "$DOCS_PRIVATE_KEY")
|
2019-10-12 06:25:08 +08:00
|
|
|
yarn cache clean
|
2019-10-12 06:10:22 +08:00
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
2019-08-27 04:03:36 +08:00
|
|
|
yarn
|
2021-03-04 16:42:46 +08:00
|
|
|
yarn run build:typings
|
2019-08-27 04:03:36 +08: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 }}
|