forked from cashubtc/nutshell
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) · 813 Bytes
/
pypi.yaml
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
name: Pip package
on:
push:
release:
types: [released]
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
poetry-version: ["1.7.1"]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/prepare
with:
python-version: ${{ matrix.python-version }}
poetry-version: ${{ matrix.poetry-version }}
- name: Build package
run: |
poetry build
- name: Install package
run: |
pip install --upgrade dist/*.whl
- name: Upload to PyPI on release
if: github.event_name == 'release' && github.event.action == 'released'
run: |
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}