Skip to content

Commit 2d3a242

Browse files
committed
fix: replace broken pypi-poetry-publish action with direct checkout + build + publish
1 parent bd9ba8c commit 2d3a242

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/publish.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@ jobs:
88
publish-service-client-package:
99
runs-on: ubuntu-latest
1010
permissions:
11-
contents: write
11+
contents: read
1212
steps:
13-
- name: Publish PyPi package
14-
uses: code-specialist/pypi-poetry-publish@v1
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
1518
with:
16-
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17-
PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }}
18-
BRANCH: "main"
19-
POETRY_VERSION: "1.7.1"
20-
POETRY_CORE_VERSION: "1.8.1"
19+
python-version: "3.12"
20+
21+
- name: Install Poetry
22+
run: pip install poetry==1.7.1 poetry-core==1.8.1
23+
24+
- name: Build package
25+
run: poetry build
26+
27+
- name: Publish to PyPI
28+
run: poetry publish --username __token__ --password ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)