ReMe/.github/workflows/release-python.yml

56 lines
1.6 KiB
YAML

name: Release / Python packages
# reme-ai[qwenpaw] is normally verified before publication. For a bootstrap
# release where the plugins require this new reme-ai version, disable that
# verification, publish reme-ai first, and then publish the plugins.
# Configure a PyPI Trusted Publisher for this repository, workflow, and its
# pypi environment before running the manual release.
on:
workflow_dispatch:
inputs:
version:
description: Release version
required: true
type: string
verify_qwenpaw_dependencies:
description: Verify already-published Auto Fin and Daily Paper packages
required: true
default: true
type: boolean
permissions:
contents: read
concurrency:
group: publish-reme-ai
cancel-in-progress: false
jobs:
build:
name: Build and verify distributions
uses: ./.github/workflows/_build-python-packages.yml
with:
expected_version: ${{ inputs.version }}
upload_artifacts: true
verify_qwenpaw_dependencies: ${{ inputs.verify_qwenpaw_dependencies }}
publish-reme:
needs: build
runs-on: ubuntu-latest
environment: pypi
permissions:
contents: read
id-token: write
steps:
- name: Download ReMe distributions
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: reme-distributions
path: dist/reme
- name: Publish ReMe
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
with:
packages-dir: dist/reme
skip-existing: true