Skip to content

re-render after fixing merge conflicts #188

re-render after fixing merge conflicts

re-render after fixing merge conflicts #188

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 9 * * 1'
name: build-deploy-qmd
jobs:
build-deploy-qmd:
runs-on: ${{ matrix.config.os }}
container: ${{ matrix.config.image }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: ubuntu-latest, r: '4.5' }
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
CRAN: ${{ matrix.config.cran }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out repo
uses: actions/checkout@v3
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- name: Set up pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies
run: |
sudo apt-get update && sudo apt-get -y install libproj-dev libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev libmpfr-dev
- name: Install dependencies
run: |
install.packages("BiocManager")
BiocManager::install(c("quarto", "remotes", "scales", "forcats",
"dplyr", "tidyr", "ggplot2", "ggforce",
"ggalt", "ggridges", "GGally", "ggsignif",
"ggstatsplot", "gghighlight", "ggrepel",
"ggtext", "ggnewscale", "ggrastr", "patchwork",
"cowplot", "plotly", "ggiraph", "RColorBrewer",
"circlize", "sessioninfo", "fueleconomy",
"scattermore", "colorspace", "directlabels"),
Ncpu = 2L)
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Render site
run: |
quarto::quarto_render("intermediate_ggplot2.qmd")
shell: Rscript {0}
- name: Prepare files to deploy
run: |
mkdir _site
cp -r index.html _site/
cp -r index2024.html _site/
cp -r index2023.html _site/
cp -r intermediate_ggplot2_files intermediate_ggplot2.html _site/
cp -r 1_fonts_errbars.html _site/
cp -r 2_ggmargin_ggrepel.html _site/
cp -r 3_many_points_scatterplot.html _site/
cp -r 4_ggpairs.html _site/
cp -r 5_combining_plot_panels.html _site/
cp -r 6_ppi_heatmaps.html _site/
cp -r 7_legend_placement.html _site/
cp -r 8_label_formatting.html _site/
- name: Install deploy dependencies
if: github.ref == 'refs/heads/main'
run: |
sudo apt-get update && sudo apt-get -y install rsync
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _site