Skip to content

Commit c8add24

Browse files
feat(v4): adjust update-demo-page.yml (#570)
1 parent 3fb148f commit c8add24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-demo-page.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: hugo new site /tmp/demo-site
3737

3838
- name: Copy exampleSite content to new site
39-
run: cp -r ./exampleSite/* /tmp/demo-site
39+
run: cp -r ./v4/exampleSite/* /tmp/demo-site
4040

4141
- name: Init Hugo module
4242
working-directory: /tmp/demo-site
@@ -49,7 +49,7 @@ jobs:
4949
working-directory: /tmp/demo-site
5050
run: |
5151
sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" config.toml
52-
version=$(grep -o 'v[0-9]\.[0-9][0-9]\.[0-9]' go.mod)
52+
version=$(grep -Po "(?<=v4\s)[^\s//]+" go.mod)
5353
sed -i "s/creditsText = .*$/creditsText = \"Bilberry Hugo Theme $version\"/" config.toml
5454
sed -i "s/creditsUrl = .*$/creditsUrl = \"https:\/\/github.com\/Lednerb\/bilberry-hugo-theme\/tree\/$version\"/" config.toml
5555

0 commit comments

Comments
 (0)