Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
Lmdeploy
Commits
859658eb
Unverified
Commit
859658eb
authored
Jul 27, 2023
by
Chen Xin
Committed by
GitHub
Jul 27, 2023
Browse files
Add pypi ci (#170)
* add pypi ci * fix build
parent
c1c1353d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
.github/workflows/pypi.yml
.github/workflows/pypi.yml
+59
-0
No files found.
.github/workflows/pypi.yml
0 → 100644
View file @
859658eb
name
:
publish to pypi
on
:
push
:
branches
:
-
main
paths
:
-
"
lmdeploy/version.py"
workflow_dispatch
:
jobs
:
build
:
strategy
:
matrix
:
pyver
:
[
py38
,
py39
,
py310
,
py311
]
runs-on
:
ubuntu-latest
env
:
PYTHON_VERSION
:
${{ matrix.pyver }}
PLAT_NAME
:
manylinux2014_x86_64
DOCKER_TAG
:
cuda11.8
OUTPUT_FOLDER
:
cuda11.8_dist
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v3
-
name
:
Build
run
:
|
echo ${PYTHON_VERSION}
echo ${PLAT_NAME}
echo ${DOCKER_TAG}
echo ${OUTPUT_FOLDER}
# remove -it
sed -i 's/docker run --rm -it/docker run --rm/g' builder/manywheel/build_wheel.sh
bash builder/manywheel/build_wheel.sh ${PYTHON_VERSION} ${PLAT_NAME} ${DOCKER_TAG} ${OUTPUT_FOLDER}
-
name
:
Upload Artifacts
uses
:
actions/upload-artifact@v3
with
:
if-no-files-found
:
error
path
:
builder/manywheel/${{ env.OUTPUT_FOLDER }}/*
retention-days
:
1
publish
:
runs-on
:
ubuntu-latest
environment
:
'
prod'
needs
:
-
build
steps
:
-
name
:
Download artifacts
uses
:
actions/download-artifact@v3
-
name
:
Display artifacts
run
:
ls artifact/ -lh
-
name
:
Set up python3.8
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.8'
-
name
:
Upload to pypi
run
:
|
pip install twine
twine upload artifact/* -u __token__ -p ${{ secrets.pypi_password }}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment