-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (30 loc) · 896 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy to PyPI
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
env:
POETRY_VIRTUALENVS_CREATE: "false"
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
poetry self add .
# NOTE: Instead of above step use the following in your workflow
# - name: Install poetry
# run: |
# pipx install poetry
# poetry self add poetry-bumpversion
- name: Build
run: |
poetry version ${{ github.ref_name }}
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# NOTE: Checkout pypa/gh-action-pypi-publish GitHub action to configure trusted publisher
# or other ways to authenticate with PyPI