-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Render README.qmd to Markdown | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' # Tracks all branches; you can restrict this to main if needed | ||
|
||
jobs: | ||
render: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Quarto | ||
uses: quarto-dev/quarto-actions/setup@v2 | ||
|
||
- name: Render README.qmd to Markdown | ||
uses: quarto-dev/quarto-actions/render@v2 | ||
with: | ||
to: markdown | ||
path: . | ||
|
||
- name: Rename README.qmd output to README.md | ||
run: | | ||
find . -name "README.qmd" | while read qmd_file; do | ||
md_file="${qmd_file%.qmd}.md" # Replace .qmd with .md | ||
mv "${qmd_file%.qmd}.md" "$md_file" | ||
done |