Skip to content

Commit

Permalink
Add a github action to convert qmd files to html and render it in Git…
Browse files Browse the repository at this point in the history
…hub pages
  • Loading branch information
balajialg committed May 9, 2024
1 parent ad18076 commit 34ee1fb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 957 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/qmd_tohtml.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Convert qmd to html

on:
push:

jobs:
convert:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install quarto
- name: Convert qmd to html
run: |
mkdir -p dashboard/visualization_output
for qmd in $(find . -name "*.qmd"); do
quarto render $qmd --to html --output-dir dashboard/visualization_output
done
- name: Publish to GitHub Pages
uses: quarto-dev/quarto-actions/publish@v2
with:
path: dashboard/visualization_output
render: false

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
Loading

0 comments on commit 34ee1fb

Please sign in to comment.