File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Upload the website
1
+ name : Build, test, and doc update
2
2
on :
3
3
push :
4
4
branches :
5
5
- master
6
6
pull_request :
7
- branches :
8
- - doc*
9
7
jobs :
10
8
run :
9
+ if : ${{ github.ref == 'refs/heads/master' || (github.event_name == 'pull_request' && startsWith (github.head_ref, 'doc')) }}
11
10
runs-on : ubuntu-latest
12
11
steps :
13
12
- uses : actions/checkout@v2
14
13
- uses : avsm/setup-ocaml@v1
15
14
with :
16
15
ocaml-version : ' 4.10.0'
17
16
- run : opam pin . --with-test --with-doc -y
18
- - run : echo '::set-env name=BUILD_ROOT ::'`opam config var yuujinchou:build`
17
+ - run : echo '::set-env name=opam-build-root ::'`opam config var yuujinchou:build`
19
18
- uses : peaceiris/actions-gh-pages@v3
20
19
with :
21
20
github_token : ${{ secrets.GITHUB_TOKEN }}
22
- publish_dir : ${{ format('{0}/_build/default/_doc/_html/', env.BUILD_ROOT ) }}
21
+ publish_dir : ${{ format('{0}/_build/default/_doc/_html/', env.opam-build-root ) }}
You can’t perform that action at this time.
0 commit comments