-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.13 KB
/
python-publish.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
42
name: Publish Release
on:
release:
types: [ created ]
jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: [ 3.9 ]
poetry-version: [ 1.6.1 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build Poetry image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run Poetry image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set release version
id: set_version
run: |
echo "RELEASE_VERSION=$(poetry version -s)" >> $GITHUB_ENV
- name: Show release version
run: echo "Release version is ${{ env.RELEASE_VERSION }}"
- name: Build PuePy
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1