Skip to content

Commit

Permalink
Create render-README.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 22, 2024
1 parent 3fdb1b4 commit b981b2f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/render-README.yml
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

0 comments on commit b981b2f

Please sign in to comment.