mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 14:40:48 +03:00
Add publishing workflow
This commit is contained in:
parent
375a6ec192
commit
5ea7612687
23
.github/workflows/publishing.yml
vendored
Normal file
23
.github/workflows/publishing.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Tests and linters
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- *
|
||||
|
||||
jobs:
|
||||
|
||||
publish-source:
|
||||
name: Publish source tarball
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TWINE_USERNAME: __token__
|
||||
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9
|
||||
- run: python setup.py sdist
|
||||
- run: pip install twine
|
||||
- run: twine upload dist/*
|
Loading…
Reference in New Issue
Block a user