Adapting the english version to 5.3.0.4 #38
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: Documentation | |
on: | |
push: | |
branches: | |
- main | |
- v4_0_1_4 | |
- bookdown | |
jobs: | |
build: | |
name: π Build Documentation | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Install R | |
uses: r-lib/actions/setup-r@v2 | |
- name: Install Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install TinyTeX | |
uses: r-lib/actions/setup-tinytex@v2 | |
- name: Install bookdown | |
run: Rscript -e "install.packages(c('rmarkdown', 'bookdown'))" | |
- name: Build documentation | |
run: make doc | |
- name: Upload documentation | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Dashboard Manual | |
path: Bookdown | |
deploy-pages: | |
name: π Upload documentation to GitHub Pages | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download bookdown documentation | |
uses: actions/download-artifact@v3 | |
with: | |
name: Dashboard Manual | |
path: Bookdown | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: Bookdown |