Skip to content

Commit a309163

Browse files
author
Christopher Doris
committed
add workflow to publish to pypi [skip ci]
1 parent 24d43fd commit a309163

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/register-pypi.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Register to PyPI
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
register:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- name: Set up Python
11+
uses: actions/setup-python@v3
12+
with:
13+
python-version: "3.10"
14+
- name: Install build
15+
run: >-
16+
python -m
17+
pip install
18+
build
19+
--user
20+
- name: Build distribution
21+
run: >-
22+
python -m
23+
build
24+
--sdist
25+
--wheel
26+
--outdir dist/
27+
.
28+
- name: Publish to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1
30+
with:
31+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)