Skip to content

Commit

Permalink
Create render-README.qmd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NicK4rT authored Nov 13, 2024
1 parent 7a2cb46 commit 37b237e
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/render-README.qmd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Render QMD Files

on:
push:
branches:
- main # Adjust as needed

jobs:
render_qmd:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v2

- name: Install Quarto
run: |
wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.2.269/quarto-1.2.269-linux-amd64.deb
sudo dpkg -i quarto-1.2.269-linux-amd64.deb
- name: Render README.qmd files to README.md
run: |
for file in $(find . -name 'README.qmd'); do
# Render each README.qmd to README.md
quarto render "$file" --to markdown
done
- name: Commit and Push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add **/README.md
git commit -m "Render README.qmd files to README.md"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 37b237e

Please sign in to comment.