mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-10-18 19:10:34 +08:00
make: Parameterize by top-level-domain
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
TLD ?= dev
|
||||
CONFIG = --config _config.yml,_config.$(TLD).yml
|
||||
|
||||
default:
|
||||
bundle exec jekyll build
|
||||
bundle exec jekyll build $(CONFIG)
|
||||
|
||||
serve:
|
||||
bundle exec jekyll serve --port 3000 --livereload
|
||||
bundle exec jekyll serve $(CONFIG) --port 3000 --livereload
|
||||
|
||||
dependencies:
|
||||
gem install jekyll
|
||||
@@ -11,12 +14,12 @@ cloudflare:
|
||||
sudo gem install bundler
|
||||
bundle config path vendor/bundle
|
||||
bundle install
|
||||
bundle exec jekyll build
|
||||
bundle exec jekyll build $(CONFIG)
|
||||
|
||||
svgs:
|
||||
scripts/cleanup-svgs.sh assets/images/*.svg
|
||||
|
||||
publish: default
|
||||
wrangler deploy
|
||||
wrangler deploy --name="website-$(TLD)"
|
||||
|
||||
.PHONY: default publish
|
||||
|
||||
Reference in New Issue
Block a user