From 2fa35f82a85f3fc89027b2bd9691108ea3b2db16 Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Sat, 30 Mar 2024 06:06:38 +1100 Subject: [PATCH 1/6] Update convert-to-pdf.yml to fix directory --- .github/workflows/convert-to-pdf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index 0c1f6936..5783a5e9 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -34,8 +34,8 @@ jobs: - uses: actions/checkout@v3 - uses: baileyjm02/markdown-to-pdf@v1 with: - input_path: ../combined_documentation.md - image_import: ../images/ + input_path: combined_documentation.md + image_import: images output_dir: pdfs # Default is true, can set to false to only get PDF files build_html: true From 19968ba1cd183ca3408236fae16c6a6ae8d8a93f Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Fri, 29 Mar 2024 20:51:41 +0000 Subject: [PATCH 2/6] The documentation was wrong --- .github/workflows/convert-to-pdf.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index 5783a5e9..f5cf48ce 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -34,8 +34,8 @@ jobs: - uses: actions/checkout@v3 - uses: baileyjm02/markdown-to-pdf@v1 with: - input_path: combined_documentation.md - image_import: images + input_path: .github/workflows/combined_documentation.md + #image_import: images output_dir: pdfs # Default is true, can set to false to only get PDF files build_html: true From 21baf2b1bedc8cb8302a9491638f85d0f3357d57 Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Fri, 29 Mar 2024 20:55:30 +0000 Subject: [PATCH 3/6] Update convert-to-pdf.yml --- .github/workflows/convert-to-pdf.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index f5cf48ce..06976f95 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -15,13 +15,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y powershell - - - name: Check actions Dir - shell: pwsh - run: | - # Replace 'path/to/your/script.ps1' with the actual path to your PowerShell script - ls - + - name: Run PowerShell script shell: pwsh run: | @@ -34,7 +28,7 @@ jobs: - uses: actions/checkout@v3 - uses: baileyjm02/markdown-to-pdf@v1 with: - input_path: .github/workflows/combined_documentation.md + input_path: ./.github/workflows/combined_documentation.md #image_import: images output_dir: pdfs # Default is true, can set to false to only get PDF files From 716561d862f966252376be3396be66675c0ba771 Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:07:52 +0000 Subject: [PATCH 4/6] I may not be smart but I am tough --- .github/workflows/convert-to-pdf.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index 06976f95..55d39af8 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -21,19 +21,17 @@ jobs: run: | # Replace 'path/to/your/script.ps1' with the actual path to your PowerShell script ./combineMarkdown.ps1 - converttopdf: - name: Build PDF - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: baileyjm02/markdown-to-pdf@v1 - with: - input_path: ./.github/workflows/combined_documentation.md + + - name: Build PDF + uses: baileyjm02/markdown-to-pdf@v1 + with: + input_dir: ./.github/workflows/ #image_import: images output_dir: pdfs # Default is true, can set to false to only get PDF files build_html: true - - uses: actions/upload-artifact@v3 - with: + - name: Upload-Artifact + uses: actions/upload-artifact@v3 + with: name: pages path: pdfs From 80e3d7d99d025262b21543ec551c3d000dc92a5a Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:13:21 +0000 Subject: [PATCH 5/6] Fix: Images --- .github/workflows/convert-to-pdf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index 55d39af8..27dbddad 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -26,7 +26,7 @@ jobs: uses: baileyjm02/markdown-to-pdf@v1 with: input_dir: ./.github/workflows/ - #image_import: images + image_import: ./.github/workflows/images output_dir: pdfs # Default is true, can set to false to only get PDF files build_html: true From 49e5fcdc97b8bc0fb5dcc72978e2e3a1fcc6ded4 Mon Sep 17 00:00:00 2001 From: Lachlan Hicks <42596763+yestalgia@users.noreply.github.com> Date: Fri, 29 Mar 2024 21:38:34 +0000 Subject: [PATCH 6/6] Glory to God I will fix this error --- .github/workflows/convert-to-pdf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/convert-to-pdf.yml b/.github/workflows/convert-to-pdf.yml index 27dbddad..cea7c777 100644 --- a/.github/workflows/convert-to-pdf.yml +++ b/.github/workflows/convert-to-pdf.yml @@ -26,7 +26,7 @@ jobs: uses: baileyjm02/markdown-to-pdf@v1 with: input_dir: ./.github/workflows/ - image_import: ./.github/workflows/images + images_dir: ./.github/workflows/images/ output_dir: pdfs # Default is true, can set to false to only get PDF files build_html: true