File tree Expand file tree Collapse file tree 2 files changed +0
-26
lines changed
actions/deploy-to-github-pages Expand file tree Collapse file tree 2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change 85
85
shell : bash
86
86
run : npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public
87
87
88
- - name : Temporarily copy some Rails assets to help the transition
89
- shell : bash
90
- run : |
91
- # To help with the transition from the Rails app to the Hugo/Pagefind site, where
92
- # at least for a while the cached version of git-scm.com might be served via
93
- # Cloudflare, according to the first transition attempt on Sep 20, 2024, potentially
94
- # partially, i.e. _some_ assets might still be cached, _some_ others might not, let's
95
- # copy the most prominent assets to the new page so that, say, the original front page
96
- # won't fail to load the style sheet and Javascript libraries that it needs.
97
- set -x &&
98
- mkdir -p public/assets &&
99
- for f in application-93865c5c820c24f4c599e8b9c544bcd8a0d03260f9b16c9ba80b6a00082112c9.css \
100
- application-f7a750114a26afea236a5cc26f6ff3925a14c5901e9ea9018fb869432d0cbee3.js \
101
- modernize-b3ebe0c31c24f230dc62179d3e1030d2e57a53b1668d9382c0a27dbd44a94beb.js
102
- do
103
- curl -Lfo public/assets/$f https://git-scm.com/assets/$f ||
104
- echo "::error::could not copy $f from https://git-scm.com/" >&2
105
- done
106
-
107
88
- name : upload GitHub Pages artifact
108
89
uses : actions/upload-pages-artifact@v3
109
90
with :
Original file line number Diff line number Diff line change 19
19
curl -Lo /tmp/hugo.deb https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_extended_${HUGO_VERSION}_linux-amd64.deb &&
20
20
sudo dpkg -i /tmp/hugo.deb
21
21
22
- - name : work around a broken link
23
- # See https://github.com/jnavila/git-manpages-l10n/pull/131;
24
- # A space is missing in "https://git-scm.com/docs上查看"
25
- run : |
26
- sed -i 's,\(href="\(https://git-scm.com/docs\)\)\(上查看\)"\([^>]*>\)\2\3\(</a>\),\1"\4\1\5 \3,p' \
27
- external/docs/content/docs/git/zh_HANS-CN.html
28
-
29
22
- name : run Hugo to build the pages
30
23
run : hugo
31
24
You can’t perform that action at this time.
0 commit comments