Skip to content

Commit

Permalink
added a python publish workflow (#1281) (#1282)
Browse files Browse the repository at this point in the history
* added a python publish workflow



* minor



---------

Signed-off-by: Zhang Jun <jzhang533@gmail.com>
Co-authored-by: jzhang533 <jzhang533@gmail.com>
  • Loading branch information
changeyoung98 and jzhang533 authored Oct 29, 2024
1 parent 684c6b6 commit dcc115f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U wheel
pip install -U setuptools
pip install -r requirements.txt
- name: Build package
run: python setup.py bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit dcc115f

Please sign in to comment.