Skip to content

Commit

Permalink
Merge pull request #401 from akatsoulas/gh-actions-release
Browse files Browse the repository at this point in the history
Add gh action to release packages to pypi
  • Loading branch information
akatsoulas committed Mar 21, 2021
2 parents e3e2f5f + d7ccd6d commit 10476f5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: mozilla-django-oidc pypi release
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
release:
runs-on: ubuntu-latest
name: Mozilla Django OIDC Release
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install dependencies
run: pip install tox tox-gh-actions
- name: Run tox
run: tox
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 10476f5

Please sign in to comment.