Skip to content

Commit 62436ff

Browse files
committed
fix: Docs publish script
1 parent 9116bc7 commit 62436ff

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ build-docs:
1212

1313
publish-docs: build-docs
1414
rm -rf /tmp/sentry-js-docs | true
15-
cp -r ./docs /tmp/sentry-js-docs
16-
git checkout gh-pages
17-
cp -r /tmp/sentry-js-docs/* .
18-
git commit -a -m "meta: Update docs"
15+
mkdir /tmp/sentry-js-docs
16+
cp -r ./docs /tmp/sentry-js-docs/docs
17+
cd /tmp/sentry-js-docs && \
18+
git clone --single-branch --branch gh-pages [email protected]:getsentry/sentry-javascript.git && \
19+
cp -r /tmp/sentry-js-docs/docs/* /tmp/sentry-js-docs/sentry-javascript/ && \
20+
cd /tmp/sentry-js-docs/sentry-javascript && \
21+
git commit -a -m "meta: Update docs" && \
1922
git push origin gh-pages
20-
git checkout master
2123
.PHONY: publish-docs

0 commit comments

Comments
 (0)