mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-11-04 22:56:56 +08:00
Add release step to build workflow
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
name: Unit tests
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
@ -26,3 +26,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pipenv run pytest --cov=fastapi_users/
|
pipenv run pytest --cov=fastapi_users/
|
||||||
pipenv run codecov
|
pipenv run codecov
|
||||||
|
- name: Release on PyPI
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
env:
|
||||||
|
FLIT_USERNAME: ${{ secrets.FLIT_USERNAME }}
|
||||||
|
FLIT_PASSWORD: ${{ secrets.FLIT_PASSWORD }}
|
||||||
|
run: |
|
||||||
|
pipenv run flit publish
|
||||||
Reference in New Issue
Block a user