Skip to content

Commit

Permalink
Fix docs task
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Jul 22, 2019
1 parent f7f5276 commit 2dbd55c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ test.integration:
--job-url https://example.com \
--color=always "$(INTEGRATION_PULL_REQUEST)"

DOC_ROOT = $(shell stack path --work-dir .stack-work-docs --local-doc-root)
DOC_S3_PREFIX = /restyler

.PHONY: docs
docs:
stack $(STACK_ARGUMENTS) --work-dir .stack-work-docs build --haddock
aws s3 sync --acl public-read --delete \
$$(stack path --work-dir .stack-work-docs --local-doc-root)/ \
s3://docs.restyled.io/restyler/
find .stack-work-docs -type f -name '*.html' -exec \
sed -i 's|$(DOC_ROOT)|$(DOC_S3_PREFIX)|g' {} +
aws s3 sync --acl public-read --delete $(DOC_ROOT)/ \
s3://docs.restyled.io$(DOC_S3_PREFIX)/

0 comments on commit 2dbd55c

Please sign in to comment.