File tree Expand file tree Collapse file tree 3 files changed +50
-1
lines changed Expand file tree Collapse file tree 3 files changed +50
-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 : Install Dependencies
17+ run : sudo apt-get install gettext
18+
19+ - name : Build
20+ run : VERSION=${{ github.event.pull_request.base.ref }} 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
2222VENV := ~/.venvs/python-docs-i18n/
2323PYTHON := $(shell which python3)
2424MODE := autobuild-dev-html
25- BRANCH = $(shell git describe --contains --all HEAD)
25+ BRANCH : = $(or $( VERSION ) , $( shell git describe --contains --all HEAD) )
2626JOBS = 1
2727
2828
You can’t perform that action at this time.
0 commit comments