Skip to content

Commit

Permalink
Render readme to jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
oneup03 committed Oct 5, 2024
1 parent bf8b213 commit 9d4dc92
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,38 @@ jobs:
- name: Build
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Install md-to-pdf
run: npm install -g md-to-pdf

- name: Install Ghostscript
run: choco install ghostscript --yes

- name: Convert README.md to PDF
run: md-to-pdf README.md

- name: Convert PDF to JPG
run: |
magick README.pdf README-%d.jpg
magick README-*.jpg -append README_combined.jpg
- name: Compress artifacts
uses: vimtor/[email protected]
with:
files: output/drivers/ README.md LICENSE
dest: "output/${{github.event.repository.name}}.zip"

- name: Upload artifacts
- name: Upload zip artifact
uses: actions/upload-artifact@v4
with:
name: "VRto3D-${{env.CommitHashShort}}"
path: output/${{github.event.repository.name}}.zip

- name: Upload README image artifact
uses: actions/upload-artifact@v4
with:
name: "README-${{env.CommitHashShort}}.jpg"
path: README_combined.jpg

- name: GitHub pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down

0 comments on commit 9d4dc92

Please sign in to comment.