mirror of
https://github.com/Eugeny/tabby
synced 2024-12-14 23:32:41 +00:00
30 lines
649 B
YAML
30 lines
649 B
YAML
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:
|
|
node-version: 10
|
|
|
|
- name: Build
|
|
run: |
|
|
eval $(ssh-agent -s)
|
|
ssh-add <(echo "$DOCS_PRIVATE_KEY")
|
|
yarn cache clean
|
|
cd app
|
|
yarn
|
|
cd ..
|
|
rm app/node_modules/.yarn-integrity
|
|
yarn
|
|
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 }}
|