Skip to content

Commit fd00e48

Browse files
committed
chore: publish workflow
1 parent d16d848 commit fd00e48

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check out
14+
uses: actions/checkout@v4
15+
16+
- name: Install build tools
17+
run: pip install hatch
18+
19+
- name: Build package
20+
run: hatch build
21+
22+
- name: Publish to PyPI
23+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,14 @@ PYTHONPATH=src python3 -m featurevisor test \
344344
--projectDirectoryPath=/path/to/featurevisor-project
345345
```
346346

347+
## Releasing
348+
349+
- Update version in pyproject.toml
350+
- Push commit to main branch
351+
- Wait for CI to complete
352+
- Tag the release with the version number `vX.X.X`
353+
- This will trigger a new release to PyPI
354+
347355
## License
348356

349357
MIT © [Fahad Heylaal](https://fahad19.com)

0 commit comments

Comments
 (0)