Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 3f8301f

Browse files
committed
WIP: use GH action to generate docs
1 parent ac7e2f3 commit 3f8301f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and deploy docs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout 🛎️
12+
uses: actions/checkout@v2
13+
with:
14+
persist-credentials: false
15+
16+
- name: Install PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 7.1
20+
coverage: none
21+
22+
- name: Install and Build 🔧
23+
run: ./install-apigen.sh && php apigen.phar generate --debug --config build/apigen.neon;
24+
25+
- name: Install SSH Client 🔑
26+
uses: webfactory/[email protected]
27+
with:
28+
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
29+
30+
- name: Deploy 🚀
31+
uses: JamesIves/github-pages-deploy-action@releases/v3
32+
with:
33+
BASE_BRANCH: master
34+
BRANCH: gh-pages
35+
FOLDER: build/docs
36+
CLEAN: true
37+
SSH: true

0 commit comments

Comments
 (0)