File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,20 @@ jobs:
39
39
- name : Copy exampleSite content to new site
40
40
run : cp -r ./exampleSite/* /tmp/demo-site
41
41
42
- - name : Adjust the baseURL for gh-pages
43
- run : sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" /tmp/demo-site/config.toml
44
-
45
42
- name : Init Hugo module
46
43
working-directory : /tmp/demo-site
47
- run : hugo mod init github.com/Lednerb/bilberry-hugo-theme/exampleSite
44
+ run : |
45
+ hugo mod init github.com/Lednerb/bilberry-hugo-theme/exampleSite
46
+ hugo mod get
47
+ cat go.mod
48
+
49
+ - name : Adjust config.yml
50
+ working-directory : /tmp/demo-site
51
+ run : |
52
+ sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" config.toml
53
+ version=$(grep -o 'v[0-9]\.[0-9][0-9]\.[0-9]' go.mod)
54
+ sed -i "s/creditsText = .*$/creditsText = \"Bilberry Hugo Theme $version\"/" config.toml
55
+ sed -i "s/creditsUrl = .*$/creditsUrl = \"https:\/\/github.com\/Lednerb\/bilberry-hugo-theme\/tree\/$version\"/" config.toml
48
56
49
57
- name : Build
50
58
working-directory : /tmp/demo-site
You can’t perform that action at this time.
0 commit comments