-
Notifications
You must be signed in to change notification settings - Fork 14
33 lines (29 loc) · 865 Bytes
/
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
on:
push:
branches:
- master
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: dmd-latest
- name: Build documentation
run: |
wget https://github.com/adamdruppe/adrdox/archive/master.zip
unzip master.zip
pushd adrdox-master && make && popd
export PATH=$PATH:$PWD/adrdox-master
doc2 --genSearchIndex --genSource -o generated-docs src
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: generated-docs