-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (31 loc) · 866 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
34
35
name: Documentation
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install Dependencies
if: runner.os == 'macOS'
run: brew install gnu-sed
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ldc-1.35.0-beta1
- name: Build Documentation
run: make docs
- name: GitHub Pages
if: success() && github.ref == 'refs/heads/master'
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: docs
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}