forked from pypa/pipx
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 1.09 KB
/
publish-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
35
36
37
38
# https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions
#
# Needed GitHub Repository Secret:
# TEST_PYPI_PASSWORD - TestPyPI API token allowing access to TestPyPI.
# Limit scope to just project.
# (See package.python.org example link above.)
name: Publish pipx to Test PyPI
on:
workflow_dispatch:
env:
default-python: "3.11"
jobs:
testpypi-publish:
name: Publish to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v3
- name: Set up Python ${{ env.default-python }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.default-python }}
- name: Upgrade pip, Install nox
run: |
python -m pip install --upgrade pip
pip install nox
- name: Build sdist and wheel
run: |
nox --error-on-missing-interpreters --non-interactive --session build
- name: Publish to Test PyPi
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.test_pypi_password }}