Skip to content

Commit b8892f1

Browse files
committed
ci: Use CircleCI artifacts redirector for doc links.
CircleCI changed their artifact layout, so our printed link in the build log no longer works. Instead of figuring out how to fix it, switch to a GitHub Action that is able to post the link as a PR status. This is easier to find, and probably easier for them to keep up-to-date.
1 parent 252583f commit b8892f1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.circleci/config.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ jobs:
115115
- store_artifacts:
116116
path: doc/build/html
117117

118-
- run:
119-
name: "Built documentation is available at:"
120-
command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html"
121-
122118
docs-python37:
123119
docker:
124120
- image: circleci/python:3.7
@@ -141,10 +137,6 @@ jobs:
141137
- store_artifacts:
142138
path: doc/build/html
143139

144-
- run:
145-
name: "Built documentation is available at:"
146-
command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html"
147-
148140
docs-python38:
149141
docker:
150142
- image: circleci/python:3.8
@@ -167,10 +159,6 @@ jobs:
167159
- store_artifacts:
168160
path: doc/build/html
169161

170-
- run:
171-
name: "Built documentation is available at:"
172-
command: echo "${CIRCLE_BUILD_URL}/artifacts/${CIRCLE_NODE_INDEX}/${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}/doc/build/html/index.html"
173-
174162
- add_ssh_keys:
175163
fingerprints:
176164
- "78:13:59:08:61:a9:e5:09:af:df:3a:d8:89:c2:84:c0"

.github/workflows/circleci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
on: [status]
2+
jobs:
3+
circleci_artifacts_redirector_job:
4+
runs-on: ubuntu-latest
5+
name: Run CircleCI artifacts redirector
6+
steps:
7+
- name: GitHub Action step
8+
uses: larsoner/circleci-artifacts-redirector-action@master
9+
with:
10+
repo-token: ${{ secrets.GITHUB_TOKEN }}
11+
artifact-path: 0/doc/build/html/index.html
12+
circleci-jobs: docs-python36,docs-python37,docs-python38

0 commit comments

Comments
 (0)