File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 30
30
- name : Build site
31
31
run : make build
32
32
33
+ - name : Copy CNAME
34
+ run : |
35
+ if [ -f CNAME ]; then
36
+ cp CNAME ${{ env.PUBLISH_DIR }}/
37
+ fi
38
+
33
39
- name : Deploy to GitHub Pages
34
40
if : github.ref == 'refs/heads/main'
35
41
uses : peaceiris/actions-gh-pages@v4
38
44
publish_dir : ${{ env.PUBLISH_DIR }}
39
45
publish_branch : ${{ env.PUBLISH_BRANCH }}
40
46
commit_message : " Deploy site to GitHub Pages - ${{ github.sha }}"
47
+
48
+ - name : Refresh GitHub Pages Cache
49
+ if : github.ref == 'refs/heads/main'
50
+ run : |
51
+ curl -X POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
52
+ -H "Accept: application/vnd.github+json" \
53
+ https://api.github.com/repos/${{ github.repository }}/pages/builds || echo "Failed to refresh GitHub Pages cache"
You can’t perform that action at this time.
0 commit comments