forked from fNIRS/snirf
-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (36 loc) · 1 KB
/
create_html.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
name: Create HTML
on:
push:
branches:
- 'master'
pull_request:
branches:
- '*'
workflow_dispatch:
jobs:
convert_via_pandoc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: create output directory
run: |
mkdir output
- uses: docker://pandoc/core:2.9
with:
args: --output=output/index.html snirf_specification.md
- uses: actions/upload-artifact@master
with:
name: snirf.html
path: output/index.html
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./output
publish_branch: gh-pages
force_orphan: true
user_name: 'github-actions[bot]'
user_email: '[email protected]'
keep_files: false
commit_message: 'Update documentation'