Skip to content

Commit

Permalink
fix: adjust demo site creation
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine committed Jun 17, 2024
1 parent da0ab2b commit 2e35538
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/update-demo-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,23 +49,22 @@ jobs:
working-directory: /tmp/demo-site
run: |
hugo mod init github.com/Lednerb/bilberry-hugo-theme/exampleSite
hugo mod get -u
cat go.mod
- name: Copy exampleSite content to new site
run: cp -r ./v4/exampleSite/* /tmp/demo-site

- name: Pull theme's Hugo module
run: |
hugo mod get -u
cat go.mod
- name: Adjust hugo.toml
working-directory: /tmp/demo-site
run: |
sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" hugo.toml
cat hugo.toml | grep baseURL
version=$(grep -Po "(?<=v4\s)[^\s//]+" go.mod)
echo $version
sed -i "s/creditsText = .*$/creditsText = \"Bilberry Hugo Theme $version\"/" hugo.toml
cat hugo.toml | grep creditsText
sed -i "s/creditsUrl = .*$/creditsUrl = \"https:\/\/github.com\/Lednerb\/bilberry-hugo-theme\/tree\/$version\"/" hugo.toml
cat hugo.toml | grep creditsUrl
- name: Build
working-directory: /tmp/demo-site
Expand Down

0 comments on commit 2e35538

Please sign in to comment.