mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Create publish to pypi workflow
This commit is contained in:
parent
aa64f3b854
commit
775278ade2
1 changed files with 24 additions and 0 deletions
24
.github/workflows/publish.yml
vendored
Normal file
24
.github/workflows/publish.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: Publish to PyPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [created]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Python and Poetry
|
||||||
|
uses: abatilo/actions-poetry@v1.5.0
|
||||||
|
with:
|
||||||
|
python_version: 3.8
|
||||||
|
poetry_version: 1.0
|
||||||
|
args: install
|
||||||
|
- name: Build
|
||||||
|
run: poetry build
|
||||||
|
- name: Publish
|
||||||
|
env:
|
||||||
|
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_USERNAME }}
|
||||||
|
run: poetry publish
|
Loading…
Reference in a new issue