Skip to content

Commit

Permalink
add deploy ci (#187)
Browse files Browse the repository at this point in the history
* add deploy ci
  • Loading branch information
kalombos authored Jan 15, 2024
1 parent c667227 commit 0fa0130
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to PyPI

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
env:
POETRY_VIRTUALENVS_CREATE: "false"
steps:
- uses: actions/checkout@v3

- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Build
run: |
poetry version ${{ github.ref_name }}
poetry build
- name: Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish
File renamed without changes.

0 comments on commit 0fa0130

Please sign in to comment.