Skip to content

Commit

Permalink
fix: fix github build job
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Nov 13, 2024
1 parent 718cbce commit 63e2a48
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,15 @@ default: build

config:
cp docs/config.yaml config.bak
# Replace placeholder (e.g., "BRANCH") in config.toml with the VERSION environment variable
sed -i '' "s/BRANCH/$(BRANCH)/g" docs/config.yaml

# Check the OS and set the sed command accordingly
if [ "$(uname)" == "Darwin" ]; then \
sed_command="sed -i ''"; \
else \
sed_command="sed -i"; \
fi
# Replace "BRANCH" in config.yaml with the value of VERSION
$(sed_command) "s/BRANCH/$(VERSION)/g" docs/config.yaml

build: config
echo $(VERSIONS)
cd docs && hugo.old --minify --theme book --destination="$(OUTPUT)/$(PRODUCT)/$(VERSION)" \
Expand Down

0 comments on commit 63e2a48

Please sign in to comment.