File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
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 }}"
You can’t perform that action at this time.
0 commit comments