Skip to content

Commit f75348e

Browse files
authored
Merge pull request #147 from cantabular/publish-package
Add a publish step to build workflow
2 parents 5b1e68d + e974b09 commit f75348e

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,28 @@ jobs:
5353
with:
5454
name: python-package-distributions
5555
path: dist/
56+
57+
publish:
58+
name: Publish to PyPI
59+
needs: build
60+
runs-on: ubuntu-latest
61+
62+
if: startsWith(github.ref, 'refs/tags/')
63+
64+
permissions:
65+
id-token: write
66+
contents: read
67+
68+
environment:
69+
name: release
70+
url: https://pypi.org/p/scraperwiki
71+
72+
steps:
73+
- name: Download artifacts
74+
uses: actions/download-artifact@v4
75+
with:
76+
name: python-package-distributions
77+
path: dist/
78+
79+
- name: Publish distribution to PyPI
80+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

0 commit comments

Comments
 (0)