forked from janezpodhostnik/flow-py-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 949 Bytes
/
release.yaml
File metadata and controls
31 lines (31 loc) · 949 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
name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Setup Poetry
uses: abatilo/actions-poetry@v2.2.0
- name: Install poetry-dynamic-versioning
run: pip install poetry-dynamic-versioning
- name: Poetry - Cache
id: poetry-cache
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Poetry - Install
if: steps.poetry-cache.outputs.cache-hit != 'true'
run: poetry install
- name: Poetry - Build
run: poetry build
- name: Poetry - Publish
run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }}