Skip to content

Commit

Permalink
fixed ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Arfey committed Apr 3, 2024
1 parent 6d15f21 commit 8200afb
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ jobs:
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
# install poetry
curl -sSL https://install.python-poetry.org | python3 -
poetry config settings.virtualenvs.create false
run: |
# install poetry
curl -sSL https://install.python-poetry.org | python3 -
poetry config settings.virtualenvs.create false
# install deps
pip install poetry-dynamic-versioning bandit twine
- name: Create README.rst
run: |
cat README.rst > README_BUILD.rst && echo >> README_BUILD.rst && cat HISTORY.rst >> README_BUILD.rst
- name: Publish
run: |
poetry build
poetry run python -m twine check --strict dist/*
poetry publish --username ${PYPI_USERNAME} --password ${PYPI_PASSWORD}
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
# install deps
pip install poetry-dynamic-versioning bandit twine
- name: Create README.rst
run: |
cat README.rst > README_BUILD.rst && echo >> README_BUILD.rst && cat HISTORY.rst >> README_BUILD.rst
- name: Publish
run: |
poetry build
poetry run python -m twine check --strict dist/*
poetry publish --username ${PYPI_USERNAME} --password ${PYPI_PASSWORD}
env:
PYPI_USERNAME: __token__
PYPI_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8200afb

Please sign in to comment.