Skip to content

Commit d9d4d3d

Browse files
committed
2 parents 5efcb95 + 4e65386 commit d9d4d3d

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and Deploy HTML
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
12+
jobs:
13+
quarto-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
# Update Ubuntu packages
17+
- name: Update apt
18+
run: sudo apt update
19+
# Install additional Ubuntu packages
20+
- name: Install additional packages
21+
run: sudo apt-get install -y librsvg2-bin libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
22+
23+
# Checkout repository
24+
- name: Check out repository
25+
uses: actions/checkout@v4
26+
27+
# Setup Python with a fixed version
28+
- name: Setup Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.12"
32+
33+
# Setup Quarto with fixed version
34+
- name: Setup Quarto
35+
uses: quarto-dev/quarto-actions/setup@v2
36+
with:
37+
tinytex: true
38+
version: 1.4.553
39+
40+
# Render HTML target to GH pages, use all issue-*.qmd files
41+
- name: Publish to GitHub Pages (and render)
42+
uses: quarto-dev/quarto-actions/publish@v2
43+
with:
44+
target: gh-pages
45+
path: ./bcd-styleguide.qmd
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

0 commit comments

Comments
 (0)