Skip to content

Commit a03fe7f

Browse files
authored
Merge pull request #19 from osori/y2c025-codex/publish-to-pypi-with-upgraded-version
Add PyPI publishing workflow
2 parents 684efde + 7a0dc3b commit a03fe7f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@
99
name: Upload Python Package
1010

1111
on:
12+
push:
13+
tags:
14+
- '*'
1215
release:
1316
types: [published]
17+
workflow_dispatch:
1418

1519
permissions:
1620
contents: read

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,10 @@ r = Romanizer("안녕하세요")
1919
r.romanize()
2020
# returns 'annyeonghaseyo'
2121
```
22+
23+
## Releasing
24+
25+
Publishing to PyPI is automated using GitHub Actions. Pushing a version tag or
26+
creating a GitHub release triggers the workflow in
27+
`.github/workflows/python-publish.yml` which builds and uploads the package using
28+
the `PYPI_API_TOKEN` secret.

0 commit comments

Comments
 (0)