-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (32 loc) · 1000 Bytes
/
pre_release.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
name: Publish to Test PyPI
on:
push:
tags:
- '*.*.*'
jobs:
test_pypi_release:
name: Builds Using Poetry and Publishes to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{github.event.release.tag_name}}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Install venv
run: poetry install
- name: Configure Poetry Repository
run: poetry config repositories.testpypi https://test.pypi.org/legacy/
- name: Configure Poetry For Test Publication
run: poetry config pypi-token.testpypi "${{secrets.TEST_PYPI_API_KEY}}"
- name: Publish package
run: poetry publish --build -r testpypi