Skip to content

Commit

Permalink
feat: support automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Nov 11, 2024
1 parent 6820964 commit fbba219
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .github/publish_python.yml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/publish_python.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
release:
types: [published]

jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Package distribution
run: |
cd python
python -m pip install --upgrade pip
pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Publish distribution
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: python/dist
repository-url: https://upload.pypi.org/legacy/

0 comments on commit fbba219

Please sign in to comment.