Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Convert manuals to PDF and include in GitHub Release assets#3

Merged
vsirotin merged 3 commits into
mainfrom
copilot/update-release-workflow
Mar 26, 2026
Merged

feat: Convert manuals to PDF and include in GitHub Release assets#3
vsirotin merged 3 commits into
mainfrom
copilot/update-release-workflow

Conversation

Copilot AI commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

The release workflow had no mechanism to deliver user-facing documentation as PDFs alongside the binary artifacts.

Changes

.github/workflows/release.yml

  • New parallel job build-user-manuals (runs after quality-gate, alongside the three platform builds):
    • Installs pandoc + weasyprint (Python-based PDF engine, no LaTeX)
    • Iterates over all *.md files in telegram/telegram-cli/manuals/, converts each to PDF, collects output in user_manuals/
    • Uploads the directory as artifact telegram-cli-manuals
  • release job: added build-user-manuals to needs; added release-assets/*.pdf to the release files list — the existing download-artifact step (no name filter, merge-multiple: true) already pulls all artifacts, so PDFs land flat in release-assets/ automatically
build-user-manuals:
  needs: [quality-gate]
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v5
    - name: Install pandoc and weasyprint
      run: |
        sudo apt-get update -q && sudo apt-get install -y pandoc
        pip install weasyprint
    - name: Convert manuals to PDF
      run: |
        mkdir -p user_manuals
        for f in telegram/telegram-cli/manuals/*.md; do
          base=$(basename "$f" .md)
          pandoc "$f" -o "user_manuals/${base}.pdf" --pdf-engine=weasyprint
        done
    - uses: actions/upload-artifact@v5
      with:
        name: telegram-cli-manuals
        path: user_manuals/

Version bump: telegram/telegram-cli1.1.2 (build 55)

Original prompt

Update a .github/workflows/release.yml, that workflow will be:

  1. Add to deliveries new directory user_manuals
  2. Convert from *.md into *.pdf all files from directory telegram/telegram-cli/manuals and placed conversion results into new directory user_manuals.
    FYI. Now in telegram/telegram-cli/manuals exist the only file, but it will be more.
    Have you any questions? If not - please start.

Created from VS Code.


⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Update .github/workflows/release.yml for user manuals feat: Convert manuals to PDF and include in GitHub Release assets Mar 26, 2026
Copilot AI requested a review from vsirotin March 26, 2026 15:20
@vsirotin vsirotin marked this pull request as ready for review March 26, 2026 18:58
@vsirotin vsirotin merged commit 9074423 into main Mar 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants