Skip to content

Commit cfd3f50

Browse files
authored
Add GitHub Actions workflow for PyPI publishing
1 parent 1a760dd commit cfd3f50

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/publish_whl.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Push rapid-doc to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
build-and-publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python 3.10
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install build tools
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install build wheel
24+
25+
- name: Build wheel
26+
run: |
27+
python -m build --wheel
28+
29+
- name: Publish to PyPI
30+
uses: pypa/gh-action-pypi-publish@v1.5.0
31+
with:
32+
user: __token__
33+
password: ${{ secrets.RAPID_DOC }}
34+
packages_dir: dist/

0 commit comments

Comments
 (0)