-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.45 KB
/
antora.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and Deploy docs
on:
push:
paths:
- 'docs/**'
- 'ui/**'
- 'antora-playbook.yml'
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install ui dependencies
run: npm install
working-directory: ui
- name: Build ui
run: npx gulp build
working-directory: ui
- name: Pack ui
run: npx gulp bundle:pack
working-directory: ui
- name: Install antora
run: npm install
- name: Build docs
run: npx antora antora-playbook.yml --fetch
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: docs-build
path: build/site/
deploy:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: docs-build
path: build
- name: Import SSH-Key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSHKEY }}" >> ~/.ssh/id_dsa
chmod 600 ~/.ssh/id_dsa
echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- name: Deploy
run: |
rsync -raz --delete --no-motd --no-o --no-g build/ [email protected]:/var/www/teebeutel.entropia.de/html/