Skip to content

Commit bd050e9

Browse files
authored
Fixes to the GitHub Actions (#28)
1 parent e3e8ab3 commit bd050e9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: .github/workflows/ocaml.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
1-
name: Upload the website
1+
name: Build, test, and doc update
22
on:
33
push:
44
branches:
55
- master
66
pull_request:
7-
branches:
8-
- doc*
97
jobs:
108
run:
9+
if: ${{ github.ref == 'refs/heads/master' || (github.event_name == 'pull_request' && startsWith (github.head_ref, 'doc')) }}
1110
runs-on: ubuntu-latest
1211
steps:
1312
- uses: actions/checkout@v2
1413
- uses: avsm/setup-ocaml@v1
1514
with:
1615
ocaml-version: '4.10.0'
1716
- 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`
1918
- uses: peaceiris/actions-gh-pages@v3
2019
with:
2120
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) }}

0 commit comments

Comments
 (0)