Optimize color mapping: minimize repetition over hue accuracy #29
This file contains hidden or 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: Deploy Documentation | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| - name: Install rmarkdown | |
| run: Rscript -e 'install.packages("rmarkdown")' | |
| - name: Install remotes | |
| run: Rscript -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes")' | |
| - name: Install plotcli | |
| env: | |
| GITHUB_PAT: ${{ secrets.GH_PAGES_PAT }} | |
| run: Rscript -e 'Sys.setenv(GITHUB_PAT = Sys.getenv("GITHUB_PAT")); remotes::install_github("cheuerde/plotcli", upgrade = "never")' | |
| - name: Install pandoc | |
| run: sudo apt update && sudo apt install -y pandoc | |
| - name: Render RMarkdown to HTML | |
| run: Rscript -e 'rmarkdown::render("plotcli_docs.Rmd", output_file = "index.html")' | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GH_PAGES_PAT }} | |
| publish_dir: ./ | |
| publish_branch: gh-pages |