Skip to content

Commit 6e0e350

Browse files
authored
Merge pull request #14 from reorx/copilot/fix-13
Add GitHub Actions workflow to build HTML from sample CV
2 parents 9320456 + fff3987 commit 6e0e350

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/build-html.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build HTML from Sample CV
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build-html:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: '18'
23+
cache: 'npm'
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Build HTML from sample.cv.json
29+
run: |
30+
DATA_FILENAME="${{ github.workspace }}/sample.cv.json" \
31+
OUT_DIR="${{ github.workspace }}/output" \
32+
npm run build
33+
34+
- name: Upload HTML artifact
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: sample-cv-html
38+
path: output/index.html
39+
retention-days: 30

0 commit comments

Comments
 (0)