-
Notifications
You must be signed in to change notification settings - Fork 26
29 lines (27 loc) · 954 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
name: Upload to Test PyPI
on:
push:
branches:
- release/*
jobs:
test-publish:
runs-on: ubuntu-latest
env:
POETRY_HOME: /opt/poetry
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install poetry
run: |
wget https://raw.githubusercontent.com/python-poetry/install.python-poetry.org/d62875fc05fb20062175cd14d19a96dbefa48640/install-poetry.py
python install-poetry.py --version 1.8.3
- name: Install dependencies
run: |
$POETRY_HOME/bin/poetry install
- name: Configure poetry for Test PyPI repository
run: |
$POETRY_HOME/bin/poetry config repositories.test-pypi https://test.pypi.org/legacy/
$POETRY_HOME/bin/poetry config pypi-token.test-pypi ${{ secrets.TEST_PYPI_TOKEN }}
- name: Build and publish package
run: |
$POETRY_HOME/bin/poetry publish --build -r test-pypi