Skip to content

Commit 1c978b2

Browse files
author
Alex J Lennon
committed
Fix publish workflow to build package before publishing
1 parent 913ed97 commit 1c978b2

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,21 @@ jobs:
2020
id-token: write # IMPORTANT: this permission is needed for trusted publishing
2121

2222
steps:
23-
- name: Download all dists
24-
uses: actions/download-artifact@v4
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
2527
with:
26-
name: python-package-distributions
27-
path: dist/
28-
github-token: ${{ secrets.GITHUB_TOKEN }}
28+
python-version: "3.10"
29+
30+
- name: Install build tools
31+
run: |
32+
python -m pip install --upgrade pip
33+
python -m pip install build
34+
35+
- name: Build package
36+
run: |
37+
python -m build
2938
3039
- name: Publish package to PyPI
3140
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)