Added github action to publish package
This commit is contained in:
parent
9d3014550b
commit
3a8fbca8d3
1 changed files with 22 additions and 0 deletions
22
.github/workflows/poetry-dist.yaml
vendored
Normal file
22
.github/workflows/poetry-dist.yaml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: Distribute package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- stable
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install poetry
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -U poetry pip
|
||||||
|
|
||||||
|
- name: Build and publish
|
||||||
|
run: poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}
|
Loading…
Add table
Add a link
Reference in a new issue