-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 943 Bytes
/
release.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
38
39
40
41
# this workflow will upload the package to pypi when a new release is created
name: release
on:
release:
types: [created]
workflow_dispatch:
jobs:
release:
name: Release package to PyPI
runs-on: ubuntu-latest
steps:
- name: Check-out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Install package
run: poetry install
- name: Build wheels and source tarball
run: poetry build
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
verify_metadata: true
verbose: true