Skip to content

Commit

Permalink
trying to make automated pypi releases with poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed May 14, 2021
1 parent 1942b90 commit fc127dc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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

0 comments on commit fc127dc

Please sign in to comment.