Skip to content

Commit 8edc8f0

Browse files
committed
👷 Updates circle-ci artifacts url for website previews
1 parent 606c25e commit 8edc8f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎.circleci/config.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ jobs:
5252
- run:
5353
name: Jekyll re-build for local
5454
command: |
55-
echo "url: https://${CIRCLE_BUILD_NUM}-30926520-gh.circle-artifacts.com" > circle.yml && \
56-
bundle exec jekyll build -d html -b "/0/html" --config _config.yml,circle.yml && \
55+
echo "url: https://output.circle-artifacts.com" > circle.yml && \
56+
bundle exec jekyll build -d html -b "/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/html" --config _config.yml,circle.yml && \
5757
find ./html/ -type f -iname '*html' | xargs -I{} sed -i \
5858
-e 's|href="\(\.\/.*\/\)"|href="\1index.html"|g' \
5959
-e '/0\/html/ s|href="\(\/.*\/\)"|href="\1index.html"|g' {}
6060
# Replace pages ending on `/` from our site to direct to index.html
6161
6262
- run:
6363
name: "Built documentation is available at:"
64-
command: DOCS_URL="${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/html/index.html"; echo $DOCS_URL
64+
command: DOCS_URL="https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/0/html/index.html"; echo $DOCS_URL
6565

6666
- save_cache:
6767
paths:

0 commit comments

Comments
 (0)