We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c5fe69 commit 424a921Copy full SHA for 424a921
.github/workflows/build-html.yml renamed to .github/workflows/build-html-and-deploy-pages.yml
@@ -1,4 +1,4 @@
1
-name: Build HTML from Sample CV
+name: Build HTML and Deploy to CF Pages
2
3
on:
4
push:
@@ -36,4 +36,18 @@ jobs:
36
with:
37
name: sample-cv-html
38
path: output/index.html
39
- retention-days: 30
+ retention-days: 30
40
+
41
+ - name: Build site
42
+ if: github.ref == 'refs/heads/master'
43
+ run: npm run build-site
44
45
+ - name: Publish
46
47
+ uses: cloudflare/pages-action@v1
48
+ with:
49
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
50
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
51
+ projectName: jsoncv
52
+ directory: src/dist
53
+ branch: master
.github/workflows/cf-pages.yml
0 commit comments