Skip to content

Commit 760c51b

Browse files
authored
Merge pull request #407 from Yelp/bariteau/github_action_pypi_publish
add publishing to PyPI
2 parents d8db76f + f049afe commit 760c51b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/pypi.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: pypi
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: '3.10'
16+
- run: python -m pip install --upgrade setuptools pip 'tox<4' virtualenv
17+
- run: tox -e py310
18+
pypi:
19+
needs: test
20+
runs-on: ubuntu-latest
21+
environment:
22+
name: pypi
23+
url: https://pypi.org/p/bravado-core
24+
permissions:
25+
id-token: write
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: '3.10'
31+
- run: python setup.py sdist
32+
- uses: pypa/gh-action-pypi-publish@v1.8.10

0 commit comments

Comments
 (0)