-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (34 loc) · 974 Bytes
/
build.yaml
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
name: Docker
on: [push]
jobs:
build:
name: Documentation build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Build documentation
run: make
- uses: actions/upload-artifact@master
with:
name: docs
path: docs/
- name: Create zip file with documentation
if: startsWith(github.ref, 'refs/tags/v')
run: zip -r docs.zip docs/
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
prerelease: true
files: docs.zip
env:
GITHUB_TOKEN: ${{ secrets.CI_TOKEN }}
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}