Skip to content

Commit

Permalink
Added CD: .github/workflows/deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Dec 7, 2023
1 parent 899adca commit db88686
Showing 1 changed file 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@v4

- name: Install poetry
run: |
pipx install poetry
pipx inject poetry poetry-bumpversion
- name: Build
run: |
poetry version ${{ github.ref_name }}
poetry build
- name: Publish
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
poetry publish

0 comments on commit db88686

Please sign in to comment.