Skip to content

Commit

Permalink
Go back to previous publish
Browse files Browse the repository at this point in the history
  • Loading branch information
curquiza committed Jan 16, 2024
1 parent 5fa112e commit 3abccb2
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Poetry
run: pipx install poetry
- name: Add PyPi token to Poetry
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: "poetry"
- name: Install Dependencies
run: poetry install
- name: Publish package
run: poetry publish --build
python-version: '3.8'
cache: "pipenv"
- name: Check release validity
run: sh .github/scripts/check-release.sh
- name: Install pipenv
run: pipx install pipenv
- name: Install dependencies
run: |
pipenv install
pipenv run pip3 install build setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: "pypi-${{ secrets.PYPI_API_TOKEN }}"
run: |
pipenv run python3 -m build
pipenv run twine upload dist/*

0 comments on commit 3abccb2

Please sign in to comment.