-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.08 KB
/
pypi_upload.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
36
37
38
39
40
41
42
name: PYPI Upload
on:
- workflow_dispatch
jobs:
pypi_upload:
name: pypi-upload
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: false
submodules: false
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Setup Pip Cache
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: pip-${{ hashFiles('.github/**/*.yaml') }}
- name: Setup Poetry Cache
uses: actions/cache@v2
with:
path: /home/runner/.cache/pypoetry/virtualenvs
key: poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Build Checks
run: |
poetry run python .github/scripts/build_checks.py
- name: Build Package
run: |
poetry build
- name: Publish Package
run: |
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}