Skip to content

Commit 381fd6e

Browse files
committed
setup: add manual publish to pypi test workflow
1 parent 422b860 commit 381fd6e

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: publish last release on test.pypi
7+
8+
on: workflow_dispatch
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install build
23+
- name: Build package
24+
run: python -m build
25+
- name: Publish package to TestPyPI
26+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27+
with:
28+
user: __token__
29+
password: ${{ secrets.TEST_PYPI_TOKEN }}
30+
repository_url: https://test.pypi.org/legacy/

.github/workflows/pypi-manual-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# separate terms of service, privacy policy, and support
44
# documentation.
55

6-
name: publish last release
6+
name: publish last release on pypi
77

88
on: workflow_dispatch
99

@@ -22,7 +22,7 @@ jobs:
2222
pip install build
2323
- name: Build package
2424
run: python -m build
25-
- name: Publish package
25+
- name: Publish package to PyPI
2626
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
2727
with:
2828
user: __token__

0 commit comments

Comments
 (0)