-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 939 Bytes
/
testpypi.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
34
name: Publish Python 🐍 distributions 📦 to TestPyPI
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI
runs-on: ubuntu-18.04
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install poetry
run: >-
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python &&
source $HOME/.poetry/env
- name: Build a source tarball
run: >-
$HOME/.poetry/bin/poetry build
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/