mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-08-28 05:25:04 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Release / Python packages
|
|
|
|
# reme-ai[qwenpaw] is verified before publication. Publish the independently
|
|
# versioned reme-auto-fin and reme-daily-paper requirements first.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Release version
|
|
required: true
|
|
type: string
|
|
release:
|
|
types: [published]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and verify distributions
|
|
uses: ./.github/workflows/_build-python-packages.yml
|
|
with:
|
|
expected_version: ${{ github.event_name == 'release' && github.event.release.tag_name || inputs.version }}
|
|
upload_artifacts: true
|
|
|
|
publish-reme:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download ReMe distributions
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: reme-distributions
|
|
path: dist/reme
|
|
|
|
- name: Publish ReMe
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
user: __token__
|
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
packages-dir: dist/reme
|
|
skip-existing: true
|