Files
wehub-resource-sync a0c8464e58
Build Package / build (ubuntu-latest) (push) Failing after 1s
CodeQL / Analyze (python) (push) Failing after 1s
Core Typecheck / core-typecheck (push) Failing after 1s
Linting / lint (push) Failing after 1s
llama-dev tests / test-llama-dev (push) Failing after 1s
Publish Sub-Package to PyPI if Needed / publish_subpackage_if_needed (push) Has been skipped
Sync Docs to Developer Hub / sync-docs (push) Failing after 0s
Build Package / build (windows-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:26:52 +08:00

63 lines
1.7 KiB
YAML

name: Pre-release for llama-index
on:
workflow_dispatch:
inputs:
version-type:
description: "The type of release to prepare"
required: true
type: choice
options:
- patch
- minor
- major
permissions:
contents: write
pull-requests: write
jobs:
prepare-release:
if: github.repository == 'run-llama/llama_index'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install uv and set python version
uses: astral-sh/setup-uv@v7
with:
python-version: "3.10"
- name: Run docs script
shell: bash
working-directory: docs
run: |
uv run --with toml --with pyaml scripts/prepare_for_build.py
- name: Prepare Versions
id: prepare
shell: bash
working-directory: llama-dev
env:
GH_TOKEN: ${{ github.token }}
VERSION_TYPE: ${{ github.event.inputs.version-type }}
run: |
uv run -- llama-dev --repo-root .. release prepare --version-type "$VERSION_TYPE"
uv run -- llama-dev --repo-root .. release changelog
VERSION=$(uv run -- llama-dev --repo-root .. pkg info --json . | jq -r .version)
echo "version=$VERSION" >> $GITHUB_OUTPUT
uv run pre-commit run -a || true
- name: Create Release PR
id: rpr
uses: peter-evans/create-pull-request@v8
with:
commit-message: Prepare release
signoff: false
branch: ${{ vars.RELEASE_BRANCH_NAME }}
delete-branch: true
title: "Release ${{ steps.prepare.outputs.version }}"
draft: false