diff --git a/.github/workflows/generate-pdf.yml b/.github/workflows/generate-pdf.yml new file mode 100644 index 0000000..3991111 --- /dev/null +++ b/.github/workflows/generate-pdf.yml @@ -0,0 +1,25 @@ +name: Generate PDF +on: + pull_request: + types: [opened, synchronize, reopened, labeled] + +jobs: + generate-pdf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Quarto + uses: quarto-dev/quarto-actions/setup@v2 + with: + tinytex: true + - name: Render Quarto Project + uses: quarto-dev/quarto-actions/render@v2 + with: + to: pdf + path: file.qmd + + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3.1.0 + with: + name: file.pdf + path: file.pdf diff --git a/file.qmd b/file.qmd new file mode 100644 index 0000000..5e83759 --- /dev/null +++ b/file.qmd @@ -0,0 +1,20 @@ +--- +title: Testing Quarto +author: Roger Bramon +--- + +# Purpose + +Try to reproduce issue described [here](https://github.com/quarto-dev/quarto-actions/issues/45#issuecomment-1245488165) + +Mermaid diagram could be the cause of the problem: + + +```{mermaid} +graph TD + A[Christmas] -->|Get money| B(Go shopping) + B --> C{Let me think} + C -->|One| D[Laptop] + C -->|Two| E[iPhone] + C -->|Three| F[fa:fa-car Car] +``` \ No newline at end of file