Skip to content

Commit d1f681f

Browse files
committed
try building site with GHActions
1 parent bd4c5d0 commit d1f681f

File tree

3 files changed

+68
-2
lines changed

3 files changed

+68
-2
lines changed

.github/workflows/publish.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
on:
2+
push:
3+
branches: [main]
4+
release:
5+
types: [published]
6+
workflow_dispatch: {}
7+
8+
name: demo-website
9+
10+
jobs:
11+
demo-page:
12+
runs-on: ubuntu-latest
13+
# Only restrict concurrency for non-PR jobs
14+
concurrency:
15+
group: quarto-publish-${{ github.event_name != 'pull_request' || github.run_id }}
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: "Check out repository"
20+
uses: actions/checkout@v4
21+
22+
# To render using knitr, we need a few more setup steps...
23+
# If we didn't want the examples to use `engine: knitr`, we could
24+
# skip a few of the setup steps.
25+
- name: "Setup R"
26+
uses: r-lib/actions/setup-r@v2
27+
28+
- name: "Setup R dependencies for Quarto's knitr engine"
29+
uses: r-lib/actions/setup-r-dependencies@v2
30+
with:
31+
packages: any::knitr
32+
any::rmarkdown
33+
any::downlit
34+
any::xml2
35+
any::ggplot2
36+
37+
# install ms-corefonts for Arial font since Proxima Nova isn't available
38+
- name: "Install ms-corefonts"
39+
run: |
40+
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
41+
sudo apt install ttf-mscorefonts-installer
42+
43+
# update font cache
44+
- name: "Update font cache"
45+
run: sudo fc-cache -fv
46+
47+
# Back to our regularly scheduled Quarto output
48+
- name: "Set up Quarto"
49+
uses: quarto-dev/quarto-actions/setup@v2
50+
with:
51+
version: "pre-release"
52+
tinytex: true # required for PDF reports
53+
54+
- name: Add extension directly into demos
55+
working-directory: ./docs/demos
56+
run: |
57+
quarto add AAGI-AUS/AAGIQuarto --no-prompt
58+
59+
- name: Publish to GitHub Pages (and render)
60+
uses: quarto-dev/quarto-actions/publish@v2
61+
with:
62+
target: gh-pages
63+
path: docs

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.PHONY: asset-revealjs asset-docx asset-report asset-pdf-short-report assets help
2+
.DEFAULT_GOAL := help
3+
4+
asset-revealjs: ## Render reveal.js Slides
5+
quarto render aagi_cu_trial_design.qmd --output-dir assets

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ You will need [Quarto](https://quarto.org) installed locally to rebuild the slid
1414
Then, the `aagi_cu_trial_design.qmd` can be knit to create `aagi_cu_trial_design.html`.
1515

1616
[Playwright.py](https://playwright.dev/python/docs/intro) was used to generate `aagi_cu_trial_design.pdf` for printed handouts via `render_pdf.py`.
17-
18-

0 commit comments

Comments
 (0)