Skip to content

add news entry (#122) #100

add news entry (#122)

add news entry (#122) #100

Workflow file for this run

---
# Github Action Workflow to publish
# the Quarto website to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- main
name: Publish Site
env:
QUARTO_DIR: "."
jobs:
publish:
name: Build & Deploy
runs-on: ubuntu-latest
container:
image: ghcr.io/insightsengineering/rstudio:latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install CRAN dependencies
run: install.packages(c("pander", "glue", "geomtextpath"), repos = "https://cloud.r-project.org")
shell: Rscript {0}
- name: Install GitHub dependencies
run: remotes::install_github(c("coolbutuseless/poissoned", "coolbutuseless/minisvg", "coolbutuseless/svgpatternsimple"))
shell: Rscript {0}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Render Quarto Project
run: quarto render --output-dir _site
shell: bash
working-directory: ${{ env.QUARTO_DIR }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Publish Project
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./${{ env.QUARTO_DIR }}/_site
destination_dir: ${{ env.QUARTO_DIR }}