Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
m-fehr committed Apr 25, 2024
2 parents 5efcb95 + 4e65386 commit d9d4d3d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Deploy HTML
on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write
pages: write

jobs:
quarto-linux:
runs-on: ubuntu-latest
steps:
# Update Ubuntu packages
- name: Update apt
run: sudo apt update
# Install additional Ubuntu packages
- name: Install additional packages
run: sudo apt-get install -y librsvg2-bin libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev

# Checkout repository
- name: Check out repository
uses: actions/checkout@v4

# Setup Python with a fixed version
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

# Setup Quarto with fixed version
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
version: 1.4.553

# Render HTML target to GH pages, use all issue-*.qmd files
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
path: ./bcd-styleguide.qmd
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions

0 comments on commit d9d4d3d

Please sign in to comment.