Skip to content

Commit 480afe0

Browse files
committed
Adding website compiler
1 parent a12bdd2 commit 480afe0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/website.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: aphylo website
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
cntr: rocker/tidyverse:latest
7+
8+
jobs:
9+
build:
10+
runs-on: Ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Container
16+
run: docker pull ${cntr}
17+
18+
- name: Building website
19+
run: |
20+
docker run --rm -i -v ${PWD}:/home/mnt -w /home/mnt ${cntr} \
21+
Rscript -e 'install.packages(c("fmcmc", "ape", "Matrix", "pkgdown"));system("R CMD INSTALL .");pkgdown::build_site(install=FALSE)'
22+
23+
- name: Deploy
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
publish_dir: ./docs

0 commit comments

Comments
 (0)