Skip to content

Commit 3abccb2

Browse files
committed
Go back to previous publish
1 parent 5fa112e commit 3abccb2

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

Diff for: .github/workflows/pypi-publish.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,23 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Install Poetry
14-
run: pipx install poetry
15-
- name: Add PyPi token to Poetry
16-
run: poetry config pypi-token.pypi ${{ secrets.PYPI_API_TOKEN }}
1713
- name: Set up Python
1814
uses: actions/setup-python@v5
1915
with:
20-
python-version: 3.11
21-
cache: "poetry"
22-
- name: Install Dependencies
23-
run: poetry install
24-
- name: Publish package
25-
run: poetry publish --build
16+
python-version: '3.8'
17+
cache: "pipenv"
18+
- name: Check release validity
19+
run: sh .github/scripts/check-release.sh
20+
- name: Install pipenv
21+
run: pipx install pipenv
22+
- name: Install dependencies
23+
run: |
24+
pipenv install
25+
pipenv run pip3 install build setuptools wheel twine
26+
- name: Build and publish
27+
env:
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: "pypi-${{ secrets.PYPI_API_TOKEN }}"
30+
run: |
31+
pipenv run python3 -m build
32+
pipenv run twine upload dist/*

0 commit comments

Comments
 (0)