Adding markdown file #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: rgexf website | |
on: [push, pull_request] | |
env: | |
cntr: gvegayon/rgexf:latest | |
jobs: | |
build: | |
runs-on: Ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Container | |
run: docker pull ${cntr} | |
- name: Building website | |
run: | | |
docker run --rm -i -v ${PWD}:/home/mnt -w /home/mnt ${cntr} Rscript -e 'pkgdown::build_site()' | |
sudo cp -r lesmiserables docs/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |