Skip to content

Commit 1c62306

Browse files
committed
feat(actions): seperate rdt localization build trigger through gha
1 parent eb3bc5d commit 1c62306

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/readthedocs.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Read The Docs Localization"
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- "discord/**"
8+
- "docs/**"
9+
workflow_dispatch:
10+
schedule:
11+
- cron: "0 0 * * 1"
12+
13+
permissions: write-all
14+
15+
jobs:
16+
localization_builds:
17+
runs-on: ubuntu-latest
18+
environment: documentation
19+
strategy:
20+
matrix:
21+
rdt_projects: [
22+
"pycord-spanish",
23+
"pycord-japanese",
24+
"pycord-brazilian",
25+
"pycord-russian",
26+
"pycord-german",
27+
"pycord-hindi",
28+
"pycord-korean",
29+
"pycord-italian",
30+
"pycord-chinese",
31+
"pycord-french"
32+
]
33+
steps:
34+
- name: "Trigger RDT ${{ matrix.rdt_projects }}"
35+
run: |
36+
PROJECT=${{ matrix.rdt_projects }}
37+
curl --location --request POST "https://readthedocs.org/api/v3/projects/$PROJECT/versions/master/builds/" \
38+
--header 'Content-Type: application/json' \
39+
--header "Authorization: Token ${{ secrets.READTHEDOCS_TOKEN }}"

0 commit comments

Comments
 (0)