Skip to content

Commit d16e2fd

Browse files
committed
Update CI to publish to pypi
1 parent 61c6f33 commit d16e2fd

File tree

1 file changed

+14
-21
lines changed

1 file changed

+14
-21
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,24 +9,17 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- name: Set up Python
14-
uses: actions/setup-python@v5
15-
with:
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: ${{ secrets.PYPI_USERNAME }}
29-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30-
run: |
31-
pipenv run python3 -m build
32-
pipenv run twine upload dist/*
12+
- 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 }}
17+
- name: Set up Python
18+
uses: actions/setup-python@v5
19+
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

0 commit comments

Comments
 (0)