-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 787 Bytes
/
publish.yml
File metadata and controls
37 lines (31 loc) · 787 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: publish
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2.2.2
with:
python-version: "3.7"
- name: Install poetry
run: make poetry-download
- name: Set up cache
uses: actions/cache@v3.2.6
with:
path: .venv
key: venv-3.7-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry config virtualenvs.in-project true
poetry install
- name: Publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish --build