Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jul 16, 2025

This PR adds a GitHub Actions workflow that automatically builds an HTML file from the sample.cv.json file on every commit to master and pull request.

Changes Made

  • Added .github/workflows/build-html.yml workflow file that:
    • Triggers on pushes to master branch and pull requests
    • Uses Node.js 18 as specified in the README
    • Installs project dependencies with npm install
    • Builds HTML from sample.cv.json using the existing build process
    • Stores the generated HTML as a downloadable artifact with 30-day retention

How It Works

The workflow follows the build instructions from the README.md exactly:

DATA_FILENAME="${{ github.workspace }}/sample.cv.json" \
OUT_DIR="${{ github.workspace }}/output" \
npm run build

The generated HTML file is then uploaded as an artifact named sample-cv-html that can be downloaded from the Actions tab for review and verification.

Testing

The build process has been tested locally and produces a valid HTML file (~26KB) containing the formatted CV based on the sample data.

Fixes #13.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: reorx <405972+reorx@users.noreply.github.com>
Copilot AI changed the title [WIP] Create github actions to build html from example json Add GitHub Actions workflow to build HTML from sample CV Jul 16, 2025
Copilot AI requested a review from reorx July 16, 2025 13:18
Copilot finished work on behalf of reorx July 16, 2025 13:18
@reorx reorx marked this pull request as ready for review July 16, 2025 13:22
@reorx reorx merged commit 6e0e350 into master Jul 16, 2025
2 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.

Create github actions to build html from example json

2 participants