fix: switch back embed-fonts to true by default #35
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
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
name: Publish examples | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Install dev packages | |
run: sudo apt-get install -y pandoc | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
- name: Install R | |
uses: r-lib/actions/setup-r@v2 | |
with: | |
r-version: "release" | |
- name: Set up Pandoc | |
uses: r-lib/actions/setup-pandoc@v2 | |
- name: Install R Dependencies | |
uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
cache: true | |
cache-version: 2 | |
- name: Render book | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: "examples/book" | |
- name: Render website | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: "examples/website" | |
- name: Render example document | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: "examples/document/bookup.qmd" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Render dark example document | |
uses: quarto-dev/quarto-actions/render@v2 | |
with: | |
path: "examples/document/bookup-dark.qmd" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Copy examples | |
run: | | |
mkdir gh_root && \ | |
cp -rp examples/book/_book gh_root/book && \ | |
cp -rp examples/website/_site gh_root/website && \ | |
cp -p examples/document/bookup.html gh_root/ && \ | |
cp -p examples/document/bookup-dark.html gh_root/ | |
- name: Deploy book | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: gh_root | |
token: ${{ secrets.GITHUB_TOKEN }} |