Skip to content

Commit c423a2d

Browse files
committed
Add PyPI publishing workflow
1 parent b01b30f commit c423a2d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish to PyPI
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
environment:
16+
name: pypi
17+
url: https://pypi.org/p/codeprint
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version: '3.9'
24+
- run: |
25+
python -m pip install --upgrade pip
26+
pip install build
27+
- run: python -m build
28+
- uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)