Skip to content

Commit

Permalink
fix: deploy demo site action
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine authored Jun 10, 2024
1 parent 61055c6 commit 3b2deb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/update-demo-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ jobs:
hugo mod get
cat go.mod
- name: Adjust config.yml
- name: Adjust hugo.toml
working-directory: /tmp/demo-site
run: |
sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" config.toml
sed -i "s/baseURL = .*$/baseURL = \"https:\/\/lednerb.github.io\/bilberry-hugo-theme\/\"/" hugo.toml
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
sed -i "s/creditsText = .*$/creditsText = \"Bilberry Hugo Theme $version\"/" hugo.toml
sed -i "s/creditsUrl = .*$/creditsUrl = \"https:\/\/github.com\/Lednerb\/bilberry-hugo-theme\/tree\/$version\"/" hugo.toml
- name: Build
working-directory: /tmp/demo-site
Expand Down

0 comments on commit 3b2deb2

Please sign in to comment.