Skip to content

Commit

Permalink
fix: upload all generated docs to one release/artifact
Browse files Browse the repository at this point in the history
Fixes #57
  • Loading branch information
david-christiansen committed Mar 21, 2024
1 parent 21631e5 commit f3a479d
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
jobSummary: true
args: --base './_out/examples/demosite' --no-progress --offline './_out/examples/demosite/**/*.html'

- name: Install Dependencies
- name: Install PDF Dependencies
run: sudo apt update && sudo apt install -y pandoc texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-luatex fonts-dejavu

- name: Generate the manual
Expand All @@ -57,34 +57,22 @@ jobs:
cp -r _out/html-single html-single-page
zip -r html-single-page.zip html-single-page
- name: Upload PDF to artifact storage
- name: Upload docs to artifact storage
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: "Verso manual (PDF)"
path: "manual.pdf"

- uses: "marvinpinto/action-automatic-releases@latest"
if: github.ref == 'refs/heads/main'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Verso manual (PDF)"
files: |
name: "Verso manual (PDF and HTML)"
path: |
manual.pdf
- name: Upload HTML to artifact storage
if: github.ref != 'refs/heads/main'
uses: actions/upload-artifact@v3
with:
name: "Verso manual (HTML, single-page)"
path: "html-single-page.zip"
html-single-page.zip
- uses: "marvinpinto/action-automatic-releases@latest"
if: github.ref == 'refs/heads/main'
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
title: "Verso manual (HTML, single-page)"
title: "Verso manual (PDF and HTML)"
files: |
manual.pdf
html-single-page.zip

0 comments on commit f3a479d

Please sign in to comment.