Skip to content

Render and Publish #594

Render and Publish

Render and Publish #594

on:
# Triggers the workflow every day at midnight UTC
schedule:
- cron: "0 0 * * *"
push:
branches: main
name: Render and Publish
jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
cache-version: v1
steps:
- name: Set timezone
run: |
sudo timedatectl set-timezone UTC
- name: Check out repository
uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Cache R packages
uses: actions/cache@v3
with:
path: /usr/local/lib/R/site-library
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ hashFiles('**/*.qmd', '.github/workflows/*.yml') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-
- name: Install R dependencies
run: |
Rscript -e 'install.packages(c("slackr", "dplyr", "tidyr", "lubridate", "purrr", "reactable"))'
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: BiocSlack.qmd
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}