-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 976 Bytes
/
upload_python_package.yml
File metadata and controls
37 lines (31 loc) · 976 Bytes
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: Upload Python Package
on:
release:
types: [ created ]
workflow_dispatch:
jobs:
deploy:
runs-on: ${{ matrix.platform }}
strategy:
max-parallel: 6
matrix:
python-version: [3.8]
poetry-version: [1.1.6]
platform: [ubuntu-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Set up Poetry ${{ matrix.poetry-version }}
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Build and publish
continue-on-error: true
run: |
poetry build
poetry config pypi-token.pypi ${{ secrets.PYPI_APITOKEN }}
poetry publish -n -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}