36
36
run :
37
37
shell : bash -l {0}
38
38
steps :
39
+ - uses : actions/checkout@v4
40
+
39
41
- name : Download merged artifact
40
42
if : inputs.is_preview != 'true'
41
43
uses : actions/download-artifact@v4
@@ -59,27 +61,33 @@ jobs:
59
61
unzip book.zip
60
62
rm -f book.zip
61
63
64
+ - name : Debug
65
+ run : pwd
66
+
67
+ - name : Debug
68
+ run : ls -la book/_build/html
69
+
62
70
- name : Deploy to GitHub Pages
63
71
uses : JamesIves/github-pages-deploy-action@v4
64
72
if : |
65
73
(github.ref == 'refs/heads/main' && inputs.cname == 'None')
66
74
with :
67
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68
- BRANCH : gh-pages
69
- FOLDER : ${{ inputs.publish_dir }}
70
- CLEAN : true
71
- KEEP_HISTORY : false
72
- BASE_PATH : ${{ inputs.destination_dir }}
75
+ token : ${{ secrets.GITHUB_TOKEN }}
76
+ branch : gh-pages
77
+ folder : ${{ inputs.publish_dir }}
78
+ clean : true
79
+ clean-exclude : " preview " # keep existing previews from other PRs
80
+ target-folder : ${{ inputs.destination_dir }}
73
81
74
82
- name : Deploy to GitHub Pages with custom domain
75
83
uses : JamesIves/github-pages-deploy-action@v4
76
84
if : |
77
85
(github.ref == 'refs/heads/main' && inputs.cname != 'None')
78
86
with :
79
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
80
- BRANCH : gh-pages
81
- FOLDER : ${{ inputs.publish_dir }}
82
- CLEAN : true
83
- KEEP_HISTORY : false
84
- BASE_PATH : ${{ inputs.destination_dir }}
85
- CNAME : ${{ inputs.cname }}
87
+ token : ${{ secrets.GITHUB_TOKEN }}
88
+ branch : gh-pages
89
+ folder : ${{ inputs.publish_dir }}
90
+ clean : true
91
+ clean-exclude : " preview " # keep existing previews from other PRs
92
+ target-folder : ${{ inputs.destination_dir }}
93
+ CNAME : ${{ inputs.cname }} # how can we set this for the new action?
0 commit comments