Skip to content

Commit

Permalink
ci: auto upload to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Jan 15, 2024
1 parent dd1de96 commit 71c3c15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment: deploy

steps:
- name: Checkout to the branch of the tag
Expand Down Expand Up @@ -63,3 +64,14 @@ jobs:
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Build and upload to PyPI
run: |
python -m pip install --upgrade pip
pip3 install build twine
python -m build . --sdist
python3 -m twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --non-interactive

0 comments on commit 71c3c15

Please sign in to comment.