mirror of
https://github.com/deepseek-ai/deepseek-recipe.git
synced 2026-10-28 17:17:08 +08:00
ci: consolidate source distribution release controls
This commit is contained in:
parent
35d7647776
commit
5a53b4b015
9
.github/workflows/publish-python-sdist.yml
vendored
9
.github/workflows/publish-python-sdist.yml
vendored
@ -7,13 +7,20 @@ on:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: publish-python-sdist-${{ github.event.release.tag_name }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build source distribution
|
name: Build source distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the release source
|
- name: Check out the release source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.release.tag_name }}
|
||||||
|
|
||||||
- name: Build source distribution
|
- name: Build source distribution
|
||||||
uses: PyO3/maturin-action@v1
|
uses: PyO3/maturin-action@v1
|
||||||
@ -27,11 +34,13 @@ jobs:
|
|||||||
name: python-sdist
|
name: python-sdist
|
||||||
path: dist/*.tar.gz
|
path: dist/*.tar.gz
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: Publish source distribution to PyPI
|
name: Publish source distribution to PyPI
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 10
|
||||||
environment:
|
environment:
|
||||||
name: pypi
|
name: pypi
|
||||||
url: https://pypi.org/p/deepseek-recipe
|
url: https://pypi.org/p/deepseek-recipe
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user