Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
80 changes: 40 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
name: build

concurrency: preview-${{ github.ref }}

permissions:
contents: write
pull-requests: write

on:
pull_request:

jobs:
ci:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5

- uses: actions/setup-python@v6
with:
python-version: "3.13"

- name: Install Dependencies
run: sudo apt-get install gettext

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Build HTML Docs
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all

- name: Deploy PR Doc Preview
# PR from the forked repo would be denied as the permission is not granted.
# Allow only PR from this repo.
if: ${{ ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) }}
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ../cpython/Doc/build/html
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
name: build
concurrency: preview-${{ github.ref }}
permissions:
contents: write
pull-requests: write
on:
pull_request:
jobs:
ci:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v5
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install Dependencies
run: sudo apt-get install gettext
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Build HTML Docs
run: VERSION=${{ github.event.repository.default_branch }} JOBS=4 MODE=html make all
- name: Deploy PR Doc Preview
# PR from the forked repo would be denied as the permission is not granted.
# Allow only PR from this repo.
if: ${{ ( github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name ) }}
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ../cpython/Doc/build/html
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
60 changes: 30 additions & 30 deletions .github/workflows/deploy-gh-page.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: deploy-gh-page

on:
push:
branches:
- "3.14"

jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Install Dependencies
run: sudo apt-get install gettext

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Build
run: JOBS=4 MODE=html make all

- name: Deploy to gh page
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ../cpython/Doc/build/html
clean: true
clean-exclude: pr-preview/
name: deploy-gh-page
on:
push:
branches:
- "3.14"
jobs:
cd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install Dependencies
run: sudo apt-get install gettext
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Build
run: JOBS=4 MODE=html make all
- name: Deploy to gh page
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ../cpython/Doc/build/html
clean: true
clean-exclude: pr-preview/
134 changes: 67 additions & 67 deletions .github/workflows/py314-sync-cpython.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,67 @@
name: python-3.14-sync-with-cpython

on:
push:
branches:
- "3.14"
schedule:
- cron: "0 0 * * *"

jobs:
sync:
runs-on: ubuntu-latest
env:
VERSION: "3.14"
BRANCH: "cron/sync/3.14"
steps:
- uses: actions/checkout@v5
with:
ref: ${{ env.VERSION }}

- name: Get the changes on branch (if exists)
continue-on-error: true
run: |
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
git reset --hard ${{ env.BRANCH }}

- name: Set env
run: echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV

- name: Install Dependencies
run: sudo apt-get install gettext

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Sync with CPython
run: make clone merge rm_cpython wrap

- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: sync with cpython ${{ env.LATEST_COMMIT_ID }}
committer: GitHub <noreply@github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base: ${{ env.VERSION }}
branch: ${{ env.BRANCH }}
delete-branch: false
title: "Sync with CPython ${{ env.VERSION }}"
body: |
Sync with CPython ${{ env.VERSION }}
draft: true
labels: |
sync-cpython
automation

- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
name: python-3.14-sync-with-cpython
on:
push:
branches:
- "3.14"
schedule:
- cron: "0 0 * * *"
jobs:
sync:
runs-on: ubuntu-latest
env:
VERSION: "3.14"
BRANCH: "cron/sync/3.14"
steps:
- uses: actions/checkout@v5
with:
ref: ${{ env.VERSION }}
- name: Get the changes on branch (if exists)
continue-on-error: true
run: |
git fetch origin ${{ env.BRANCH }}:${{ env.BRANCH }}
git reset --hard ${{ env.BRANCH }}
- name: Set env
run: echo "LATEST_COMMIT_ID=$(git ls-remote https://github.com/python/CPython.git $VERSION | head -c 8)" >> $GITHUB_ENV
- name: Install Dependencies
run: sudo apt-get install gettext
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Sync with CPython
run: make clone merge rm_cpython wrap
- uses: actions/create-github-app-token@v2
id: app-token
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
token: ${{ steps.app-token.outputs.token }}
commit-message: sync with cpython ${{ env.LATEST_COMMIT_ID }}
committer: GitHub <noreply@github.com>
author: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
base: ${{ env.VERSION }}
branch: ${{ env.BRANCH }}
delete-branch: false
title: "Sync with CPython ${{ env.VERSION }}"
body: |
Sync with CPython ${{ env.VERSION }}
draft: true
labels: |
sync-cpython
automation
- name: Check outputs
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"
88 changes: 44 additions & 44 deletions .github/workflows/summarize_progress.yml
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
name: summarize_progress

on:
workflow_dispatch:
schedule:
- cron: '30 23 * * 5'

jobs:
ci:
if: github.repository == 'python/python-docs-zh-tw'
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v5

- name: Install poetry
uses: abatilo/actions-poetry@v4

- name: Execute Check Process
run: |
chmod +x .scripts/summarize_progress.sh
.scripts/summarize_progress.sh
shell: bash


- name: Checkout wiki code
uses: actions/checkout@v5
with:
repository: ${{github.repository}}.wiki
path: markdown

- name: Copy content
run: |
cp .scripts/summarize_progress/result.md markdown/各檔案翻譯進度清單.md
shell: bash

- name: Commit wiki code
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Weekly Update -- Summarize Progress
repository: markdown
name: summarize_progress
on:
workflow_dispatch:
schedule:
- cron: '30 23 * * 5'
jobs:
ci:
if: github.repository == 'python/python-docs-zh-tw'
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v5
- name: Install poetry
uses: abatilo/actions-poetry@v4
- name: Execute Check Process
run: |
chmod +x .scripts/summarize_progress.sh
.scripts/summarize_progress.sh
shell: bash
- name: Checkout wiki code
uses: actions/checkout@v5
with:
repository: ${{github.repository}}.wiki
path: markdown
- name: Copy content
run: |
cp .scripts/summarize_progress/result.md markdown/各檔案翻譯進度清單.md
shell: bash
- name: Commit wiki code
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Weekly Update -- Summarize Progress
repository: markdown
Loading
Loading