update publish workflow

This commit is contained in:
collerek
2021-10-13 14:05:39 +02:00
committed by GitHub
parent b66edca74b
commit b197d4d3c7

View File

@ -7,6 +7,9 @@ on:
release: release:
types: [created] types: [created]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs: jobs:
deploy: deploy:
@ -15,18 +18,17 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2.2.2
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies
run: | - name: Install Poetry
python -m pip install --upgrade poetry uses: snok/install-poetry@v1.2
poetry install --no-dev with:
env: virtualenvs-create: true
POETRY_VIRTUALENVS_CREATE: false virtualenvs-in-project: true
- name: Build and publish - name: Build and publish
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: | run: |
poetry publish --build poetry build -vvv
poetry publish -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }}