Skip to content

Commit b50d683

Browse files
committed
ci: deploy preview to stable URL
1 parent 8a3353d commit b50d683

File tree

3 files changed

+293
-39
lines changed

3 files changed

+293
-39
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,10 @@ jobs:
323323
- downstream
324324
- run: yarn docs:build
325325
- run: echo '/* /index.html 200' > documentation/dist/_redirects
326-
- run: yarn netlify deploy
326+
- run: |
327+
branch=$(git symbolic-ref --short HEAD)
328+
branch=$(npx slugify-cli $branch)
329+
yarn netlify deploy --alias=$branch
327330
328331
workflows:
329332
version: 2

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
"marked": "^2.0.0",
167167
"merge2": "^1.2.3",
168168
"mocha-junit-reporter": "^2.0.0",
169-
"netlify-cli": "^3.1.0",
169+
"netlify-cli": "^3.13.1",
170170
"node-fetch": "^2.6.0",
171171
"npm-run-all": "^4.1.5",
172172
"pixelmatch": "^5.2.1",

0 commit comments

Comments
 (0)