File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments