Skip to content

Commit

Permalink
feat(v4): adjust update-demo-page.yml (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine authored Aug 23, 2023
1 parent 3fb148f commit c8add24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-demo-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: hugo new site /tmp/demo-site

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

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

0 comments on commit c8add24

Please sign in to comment.