Skip to content

Commit 45860de

Browse files
committed
New CI
1 parent 44c0627 commit 45860de

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

.github/workflows/update-and-build.yml

+10-12
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,35 @@ jobs:
3131
with:
3232
repository: python/cpython
3333
ref: main
34-
path: cpython
3534
- run: make gettext
36-
working-directory: cpython/Doc
35+
working-directory: ./Doc
3736
- run: sphinx-intl create-txconfig
38-
working-directory: cpython/Doc/build
37+
working-directory: ./Doc/build
3938
- run: sphinx-intl update-txconfig-resources --transifex-organization-name python-doc --transifex-project-name python-newest -d . -p gettext
40-
working-directory: cpython/Doc/build
39+
working-directory: ./Doc/build
4140
env:
4241
TX_TOKEN: ${{ secrets.TX_TOKEN }}
4342
- run: tx pull -l uk --force --skip
44-
working-directory: cpython/Doc/build
43+
working-directory: ./Doc/build
4544
env:
4645
TX_TOKEN: ${{ secrets.TX_TOKEN }}
4746
- run: find -name "*.po" -exec msgcat --no-location -o {} {} \;
48-
working-directory: cpython/Doc/build
47+
working-directory: ./Doc/build
4948
- uses: actions/checkout@master
5049
with:
5150
ref: ${{ matrix.version }}
52-
path: python-docs-uk
53-
- run: rsync -r --del --exclude .git --exclude Makefile cpython/Doc/build/uk/LC_MESSAGES/ python-docs-uk
51+
path: ./Doc/build/uk/LC_MESSAGES
5452
- run: |
5553
git config --local user.email github-actions@github.com
5654
git config --local user.name "GitHub Action's update-translation job"
57-
git add .
55+
git add -f .
5856
git commit -m 'Update translation from Transifex' || true
59-
working-directory: python-docs-uk
57+
working-directory: ./Doc/build/uk/LC_MESSAGES
6058
- uses: ad-m/github-push-action@master
6159
with:
6260
branch: ${{ matrix.version }}
6361
github_token: ${{ secrets.GITHUB_TOKEN }}
64-
directory: python-docs-uk
62+
directory: ./Doc/build/uk/LC_MESSAGES
6563

6664
lint-translation:
6765
runs-on: ubuntu-latest
@@ -105,7 +103,7 @@ jobs:
105103
- run: git pull
106104
working-directory: ./Doc/locales/uk/LC_MESSAGES
107105
- uses: sphinx-doc/github-problem-matcher@v1.1
108-
- run: make -e SPHINXOPTS="--color -D language='uk' -W --keep-going" ${{ matrix.format }}
106+
- run: make -e SPHINXOPTS="-D language='uk' -D gettext_compact=0 -W --keep-going --color" ${{ matrix.format }}
109107
working-directory: ./Doc
110108
- uses: actions/upload-artifact@master
111109
if: success() || failure()

0 commit comments

Comments
 (0)