Skip to content

Commit 4fa7141

Browse files
authored
MRG: Merge pull request #7 from octue/add-trusted-pypi-publishing
Fix distribution build
2 parents 080c8bd + 3c84890 commit 4fa7141

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ on:
99
jobs:
1010
publish:
1111
# This job will only run if the PR has been merged (and not closed without merging).
12-
if: "github.event.pull_request.merged == true && !contains(github.event.pull_request.head.message, 'skipci')"
12+
if: "github.event.pull_request.merged == true"
13+
permissions:
14+
id-token: write
15+
contents: read
1316
runs-on: ubuntu-latest
1417
steps:
1518
- name: Checkout repository
1619
uses: actions/checkout@v3
1720

18-
- name: Set up Python
19-
uses: actions/setup-python@v2
20-
with:
21-
python-version: 3.9
21+
- name: Install Poetry
22+
uses: snok/[email protected]
2223

23-
- name: Make package
24-
run: |
25-
python3 -m pip install --upgrade setuptools wheel
26-
python3 setup.py sdist bdist_wheel
24+
- name: Build a binary wheel and a source tarball
25+
run: poetry build
2726

2827
- name: Publish package distributions to PyPI
2928
uses: pypa/[email protected]

0 commit comments

Comments
 (0)