Skip to content

Commit 40771ac

Browse files
committed
fix: set correct variables for website update process
1 parent a771637 commit 40771ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/update-website.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
NEW_FILE_NAME=$(echo $LATEST_VERSION | tr . _)
2121

2222
# Copy the docs/version-template.md and name it after the new version
23-
cp docs/version-template.md docs/$NEW_VERSION.md
23+
cp docs/version-template.md docs/$NEW_FILE_NAME.md
2424

2525
# Replace the placeholder __NEW_VERSION__ with the latest version in the new file
2626
sed -i "s/__NEW_VERSION__/$LATEST_VERSION/g" docs/$NEW_FILE_NAME.md
@@ -50,5 +50,5 @@ echo "Setup of the plugin for version $LATEST_VERSION is complete."
5050
# Step 4: Update installation instructions at the home page
5151

5252
# Replace the plugin version in the URL with the new version
53-
sed -i "s|https://zjoule.com/.*/plugin|https://zjoule.com/$NEW_VERSION/plugin|g" docs/index.md
53+
sed -i "s|https://zjoule.com/.*/plugin|https://zjoule.com/$LATEST_VERSION/plugin|g" docs/index.md
5454
echo "Setup of the index for version $LATEST_VERSION is complete."

0 commit comments

Comments
 (0)