Skip to content

Commit 520f5fe

Browse files
committed
[skip ci] PR build
1 parent 707ec8b commit 520f5fe

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/pr_build.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: PR build for ver 3.8
2+
3+
on:
4+
pull_request:
5+
branches: [ "3.8" ]
6+
types:
7+
- opened # open PR
8+
- synchronize # update the branch which pulled from
9+
- reopened # re-open PR
10+
11+
jobs:
12+
pr_build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout cpython repository
17+
uses: actions/checkout@v2
18+
with:
19+
repository: python-doc-ja/cpython-doc-catalog
20+
ref: catalog-3.8
21+
path: cpython
22+
23+
24+
- name: Checkout PR branch
25+
uses: actions/checkout@v2
26+
with:
27+
ref: ${{ github.ref }}
28+
path: cpython/locales/ja/LC_MESSAGES
29+
30+
- name: debug
31+
run: |
32+
echo github.workspace
33+
echo ${{ github.workspace }}
34+
pwd
35+
ls -l
36+
ls -l ../*
37+
38+
- name: Checkout GitHub Pages
39+
uses: actions/checkout@v2
40+
with:
41+
ref: gh-pages
42+
path: build
43+
44+
- name: Install dependencies
45+
run: |
46+
sudo apt-get update
47+
sudo apt-get install -y --no-install-recommends python3-venv
48+
python3 -m venv build_root/venv/
49+
build_root/venv/bin/python -m pip install -r requirements.txt
50+
51+
- name: Publish PR build
52+
run: |
53+
pip freeze
54+
pwd
55+
ls -l ../*
56+
echo ${{ github.workspace }}

0 commit comments

Comments
 (0)