-
-
Notifications
You must be signed in to change notification settings - Fork 195
55 lines (43 loc) · 1.35 KB
/
docs.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
name: Documentation
on:
push:
branches:
- master
- docs
jobs:
documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/[email protected]
with:
php-version: 8.1
extensions: mbstring, dom, intl, iconv
- name: Install Dependencies
run: composer install --prefer-dist --no-progress --no-suggest --dev
- name: Install Daux
run: composer require daux/daux.io:^0.22.0 --prefer-dist --no-progress --no-suggest --dev
- name: Create Build Directory
run: mkdir -p build/daux
- name: Generate Documentation
run: vendor/bin/daux generate -d build/daux
- name: Deploy Documentation Website
uses: easingthemes/ssh-deploy@v4
with:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
ARGS: "-rlgoDzvc -i"
SOURCE: "build/daux/"
REMOTE_HOST: ${{ secrets.DOCS_REMOTE_HOST }}
REMOTE_USER: ${{ secrets.DOCS_REMOTE_TARGET_PATH }}
TARGET: ${{ secrets.DOCS_REMOTE_USER }}
EXCLUDE: ".DS_Store, .git*"
SCRIPT_BEFORE: |
whoami
ls -al "${{ secrets.DOCS_REMOTE_TARGET_PATH }}"
SCRIPT_AFTER: |
whoami
ls -al "${{ secrets.DOCS_REMOTE_TARGET_PATH }}"
echo $RSYNC_STDOUT