Skip to content

Commit 21c6bb1

Browse files
committed
Custom poetry publish
1 parent 62b4b3f commit 21c6bb1

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/publish.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12+
13+
- name: Install poetry
14+
run: |
15+
sudo apt install -y pipx
16+
pipx ensurepath
17+
pipx install poetry
18+
pipx inject poetry poetry-plugin-export
19+
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
1220
- name: Build and publish to Python package repository
21+
run: |
22+
poetry build
23+
poetry publish
1324
uses: JRubics/[email protected]
14-
with:
15-
repository_name: "django_api_forms"
16-
repository_url: "https://github.com/Sibyx/django_api_forms"
17-
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)