Skip to content

Commit

Permalink
Create publish-to-pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
skim0119 committed Jul 15, 2022
1 parent d893daa commit c150db5
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: publish

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3.1.0
with:
python-version: "3.x"
- name: Build
run: |
python setup.py sdist
ls dist
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c150db5

Please sign in to comment.