Skip to content

Commit 9a5f5d0

Browse files
fixed doc CI
1 parent e008b2a commit 9a5f5d0

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ jobs:
1212
steps:
1313
- name: Trigger Read the Docs Build
1414
run: |
15-
# Create request body
16-
BODY='{}'
17-
18-
# Create HMAC-SHA256 signature
19-
SIGNATURE=$(echo -n "$BODY" | openssl dgst -sha256 -hmac "${{ secrets.RTD_WEBHOOK_TOKEN }}" -binary | xxd -p -c 256)
20-
21-
# Send request to Read the Docs webhook
2215
curl -X POST \
23-
-H "X-RTD-Signature: sha256=$SIGNATURE" \
24-
-H "Content-Type: application/json" \
25-
-d "$BODY" \
26-
https://app.readthedocs.org/api/v2/webhook/python-ics/319966/
16+
-H "Authorization: Token ${{ secrets.RTD_API_TOKEN }}" \
17+
https://app.readthedocs.org/api/v3/projects/python-ics/versions/master/builds/

0 commit comments

Comments
 (0)