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 3030 - name : Build site
3131 run : make build
3232
33+ - name : Copy CNAME
34+ run : |
35+ if [ -f CNAME ]; then
36+ cp CNAME ${{ env.PUBLISH_DIR }}/
37+ fi
38+
3339 - name : Deploy to GitHub Pages
3440 if : github.ref == 'refs/heads/main'
3541 uses : peaceiris/actions-gh-pages@v4
3844 publish_dir : ${{ env.PUBLISH_DIR }}
3945 publish_branch : ${{ env.PUBLISH_BRANCH }}
4046 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