mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-27 09:10:35 +08:00
38 lines
651 B
YAML
38 lines
651 B
YAML
name: publish
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
publish:
|
|
name: Upload release to PyPI
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
environment:
|
|
name: release
|
|
url: https://pypi.org/p/llamafactory
|
|
|
|
permissions:
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
python-version: "3.11"
|
|
github-token: ${{ github.token }}
|
|
|
|
- name: Build package
|
|
run: |
|
|
make build
|
|
|
|
- name: Publish package
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|