Skip to content

Commit d7ccd6d

Browse files
johngianakatsoulas
authored andcommitted
Add gh action to release packages to pypi
1 parent 3b7ce71 commit d7ccd6d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: mozilla-django-oidc pypi release
2+
on:
3+
push:
4+
tags:
5+
- "[0-9]+.[0-9]+.[0-9]+"
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
name: Mozilla Django OIDC Release
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
- name: Setup python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: "3.9"
18+
- name: Install dependencies
19+
run: pip install tox tox-gh-actions
20+
- name: Run tox
21+
run: tox
22+
- name: Publish a Python distribution to PyPI
23+
uses: pypa/gh-action-pypi-publish@release/v1
24+
with:
25+
user: __token__
26+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)