Skip to content

Commit c19342f

Browse files
committed
fix publishing job
1 parent 0afbe20 commit c19342f

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/workflows/publish.yml

+24-5
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,32 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
11+
environment: release
12+
permissions:
13+
id-token: write
14+
contents: read
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v4
1318

14-
- name: Build and publish to pypi
15-
uses: JRubics/[email protected]
19+
- name: Install Poetry
20+
run: |
21+
pipx install poetry
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v4
1625
with:
17-
python_version: "3.9"
18-
pypi_token: ${{ secrets.PYPI_TOKEN }}
19-
poetry_install_options: "--without dev"
26+
python-version: '3.9'
27+
cache: 'poetry'
28+
29+
- name: Install dependencies
30+
run: |
31+
poetry install
32+
33+
- name: Build
34+
run: |
35+
poetry build
36+
37+
- name: Publish to pypi
38+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)