|
@@ -13,16 +13,20 @@ jobs:
|
|
|
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
- - name: Set up Python
|
|
|
+ - name: set up Python
|
|
|
uses: actions/setup-python@v2
|
|
|
with:
|
|
|
python-version: "3.x"
|
|
|
- - name: Run image
|
|
|
+ - name: set up Poetry
|
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
|
with:
|
|
|
poetry-version: "1.1.6"
|
|
|
+ - name: get version
|
|
|
+ id: get_version
|
|
|
+ run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
|
|
|
+ - name: set version
|
|
|
+ run: poetry version ${{ steps.get_version.outputs.VERSION }}
|
|
|
- name: publish
|
|
|
env:
|
|
|
- TWINE_USERNAME: __token__
|
|
|
- TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
|
|
|
run: poetry publish --build
|