Skip to content

Commit

Permalink
updated publishing ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hechth committed Feb 29, 2024
1 parent 582b0b5 commit f9aa61a
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
name: Publish to PyPI
name: Publish

on:
release:
types: [published]
workflow_dispatch:

jobs:
publish:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- uses: actions/checkout@v3
- name: Build and publish to pypi
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit f9aa61a

Please sign in to comment.