From 4e65386c48a4d6f2a4b6d1bc97181b09a3fb50c6 Mon Sep 17 00:00:00 2001 From: Marc Fehr Date: Wed, 24 Apr 2024 11:46:28 +0200 Subject: [PATCH] Create build_and_deploy.yml --- .github/workflows/build_and_deploy.yml | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build_and_deploy.yml diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml new file mode 100644 index 0000000..65d799b --- /dev/null +++ b/.github/workflows/build_and_deploy.yml @@ -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