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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: build
concurrency: preview-${{ github.ref }}

permissions:
contents: write

on:
pull_request:

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

Expand All @@ -19,5 +23,20 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v6

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

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

- name: Deploy PR Doc Preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ../cpython/Doc/build/html
token: ${{ steps.app-token.outputs.token }}
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
29 changes: 0 additions & 29 deletions .github/workflows/deploy-gh-page.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/py313-sync-cpython.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ jobs:
- name: Sync with CPython
run: make clone merge rm_cpython wrap

- uses: tibdex/github-app-token@v2
id: generate-token
- uses: actions/create-github-app-token@v2
id: app-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
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.generate-token.outputs.token }}
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>
Expand Down
Loading