docs(cli): 关闭 PyPI 发行与生产验收单元 (#104) #24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Prepare release pull request | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: prepare-release-pr | |
| cancel-in-progress: true | |
| jobs: | |
| prepare: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout checked main | |
| uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.sha }} | |
| - name: Set up Python and PDM | |
| uses: pdm-project/setup-pdm@973541a5febeafcfdadf8a51211435be6ecfd90f # v4.5 | |
| with: | |
| python-version-file: .python-version | |
| version: 2.28.0 | |
| cache: true | |
| - name: Install locked release tooling | |
| run: pdm install -G dev --frozen-lockfile | |
| - name: Prepare every pending project | |
| run: pdm run release:prepare | |
| - name: Update generated branch | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: bash scripts/automation/release_pr.sh |