Skip to content

Commit

Permalink
リリース時に自動で PyPI にアップロードされるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
abap34 committed May 18, 2024
1 parent d7cb959 commit 84561bc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Upload package to PyPI

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine pybind11
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 84561bc

Please sign in to comment.