Skip to content

Commit

Permalink
Review GH release action
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro committed Mar 10, 2022
1 parent 58b3cf5 commit f6e3aae
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,14 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install and set up Poetry
run: |
curl -fsS -o get-poetry.py https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py
python get-poetry.py -y
source $HOME/.poetry/env
poetry config virtualenvs.in-project true
python-version: 3.9
- name: Install and configure Poetry
uses: gi0baro/setup-poetry-bin@v1
with:
virtualenvs-in-project: true
- name: Publish
run: |
source $HOME/.poetry/env
poetry config pypi-token.pypi $PUBLISH_TOKEN
poetry build
poetry publish
env:
PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}

0 comments on commit f6e3aae

Please sign in to comment.