File tree Expand file tree Collapse file tree 3 files changed +53
-1
lines changed Expand file tree Collapse file tree 3 files changed +53
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - " 3.7"
7
+ - " 3.8"
8
+ - " 3.9"
9
+
10
+ jobs :
11
+ ci :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Set env
17
+ run : echo "VERSION=$(git branch --show-current)" >> $GITHUB_ENV
18
+
19
+ - name : Install Dependencies
20
+ run : sudo apt-get install gettext
21
+
22
+ - name : Build
23
+ run : VERSION={{ env.VERSION }} make
Original file line number Diff line number Diff line change
1
+ name : deploy-gh-page
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - " 3.9"
7
+
8
+ jobs :
9
+ cd :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Set env
15
+ run : echo "VERSION=$(git branch --show-current)" >> $GITHUB_ENV
16
+
17
+ - name : Install Dependencies
18
+ run : sudo apt-get install gettext
19
+
20
+ - name : Build
21
+ run : VERSION={{ env.VERSION }} make
22
+
23
+ - name : Deploy to gh page
24
+ uses : JamesIves/github-pages-deploy-action@3.7.1
25
+ with :
26
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
+ BRANCH : gh-pages
28
+ FOLDER : ../cpython/Doc/build/html
29
+ CLEAN : true
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ LC_MESSAGES := $(CPYTHON_CLONE)/Doc/locales/$(LANGUAGE)/LC_MESSAGES
22
22
VENV := ~/.venvs/python-docs-i18n/
23
23
PYTHON := $(shell which python3)
24
24
MODE := autobuild-dev-html
25
- BRANCH = $(shell git describe --contains --all HEAD)
25
+ BRANCH : = $(or $( VERSION ) , $( shell git describe --contains --all HEAD) )
26
26
JOBS = 1
27
27
28
28
You can’t perform that action at this time.
0 commit comments