From 9084e0b6420b48c3f03caa68c26d95640b914c80 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:13:33 +0000 Subject: [PATCH 1/2] Initial plan From fff3987d77fb203693e7b8ee222581b6af1457fa Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 16 Jul 2025 13:17:28 +0000 Subject: [PATCH 2/2] Add GitHub Actions workflow to build HTML from sample.cv.json Co-authored-by: reorx <405972+reorx@users.noreply.github.com> --- .github/workflows/build-html.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build-html.yml diff --git a/.github/workflows/build-html.yml b/.github/workflows/build-html.yml new file mode 100644 index 0000000..fb3f695 --- /dev/null +++ b/.github/workflows/build-html.yml @@ -0,0 +1,39 @@ +name: Build HTML from Sample CV + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build-html: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Build HTML from sample.cv.json + run: | + DATA_FILENAME="${{ github.workspace }}/sample.cv.json" \ + OUT_DIR="${{ github.workspace }}/output" \ + npm run build + + - name: Upload HTML artifact + uses: actions/upload-artifact@v4 + with: + name: sample-cv-html + path: output/index.html + retention-days: 30 \ No newline at end of file