diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2021-12-16 19:38:00 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2021-12-16 19:38:00 +0100 |
| commit | 96aa1d3baf484d31aced5d6479372c01b162dfa0 (patch) | |
| tree | c1beed5ec448bc1fd5732a646f911e760944ece9 /docs/Makefile | |
| parent | a0d42f799fd2e0c188416fb2dea9c89bb0ab180d (diff) | |
make: Fix publish and release targets
Diffstat (limited to 'docs/Makefile')
| -rw-r--r-- | docs/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/Makefile b/docs/Makefile index efcdd24..021d68c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -83,7 +83,7 @@ space := $(empty) $(empty) publish: html html-dir pdf @aws s3 cp $(PKG).html $(PUBLISH_TARGET) @aws s3 cp $(PKG).pdf $(PUBLISH_TARGET) - @aws s3 sync --delete $(PKG) $(PUBLISH_TARGET)$(PKG)/ + @aws s3 sync $(PKG) $(PUBLISH_TARGET)$(PKG)/ @printf "Generating CDN invalidation\n" @aws cloudfront create-invalidation --distribution-id $(CFRONT_DIST) --paths \ "$(subst $(space),$(comma),$(addprefix $(PUBLISH_PATH),$(CFRONT_PATHS)))" > /dev/null @@ -91,7 +91,7 @@ publish: html html-dir pdf release: html html-dir pdf @aws s3 cp $(PKG).html $(RELEASE_TARGET) @aws s3 cp $(PKG).pdf $(RELEASE_TARGET) - @aws s3 sync --delete $(PKG) $(RELEASE_TARGET)$(PKG)/ + @aws s3 sync $(PKG) $(RELEASE_TARGET)$(PKG)/ @aws s3 cp $(PUBLISH_TARGET)dir.html $(RELEASE_TARGET)dir.html @aws s3 cp $(PUBLISH_TARGET)dir/index.html $(RELEASE_TARGET)dir/index.html @printf "Generating CDN invalidation\n" |
