File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -44,11 +44,34 @@ jobs:
44
44
destination_dir : pull${{ github.event.number }}
45
45
# force_orphan: true # once peaceiris updates to v4, change this to true and keep_files: true for the PR / main branch deploy previews
46
46
47
+ - name : Checkout the gh-pages branch
48
+ uses : actions/checkout@v2
49
+ with :
50
+ fetch-depth : ' 0'
51
+ ref : ' gh-pages'
52
+
53
+ - name : Run website diff
54
+ run : |
55
+ rustup update
56
+ pip install website_diff
57
+ website_diff --old dev --new pull${{ github.event.number }} --diff diff${{ github.event.number }}
58
+
59
+ - name : GitHub Pages action to push diff
60
+
61
+ with :
62
+ github_token : ${{ secrets.GITHUB_TOKEN }}
63
+ publish_dir : diff${{ github.event.number }}
64
+ keep_files : true
65
+ destination_dir : diff${{ github.event.number }}
66
+ # force_orphan: true # once peaceiris updates to v4, change this to true and keep_files: true for the PR / main branch deploy previews
67
+
68
+
47
69
- name : Post URLS to PR thread
48
70
49
71
with :
50
72
message : |
51
73
Hello! I've built a preview of your PR so that you can compare it to the current `main` branch.
52
74
* PR deploy preview available [here](https://python.datasciencebook.ca/pull${{ github.event.number }}/index.html)
75
+ * PR diff with `main` available [here](https://python.datasciencebook.ca/diff${{ github.event.number }}/index.html)
53
76
* Current `main` deploy preview available [here](https://python.datasciencebook.ca/dev/index.html)
54
77
* Public production build available [here](https://python.datasciencebook.ca)
You can’t perform that action at this time.
0 commit comments