Skip to content

Commit

Permalink
Add release workflow (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaogaotiantian authored Apr 29, 2024
1 parent fc5fb8a commit 96d3b18
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Python package build and publish

on:
release:
types: [created]

jobs:
deploy-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine setuptools wheel
- name: Build source tar
run: |
python -m build
- name: Publish wheels to PyPI
continue-on-error: true
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*.whl dist/*tar*

0 comments on commit 96d3b18

Please sign in to comment.