Skip to content

Commit cbc1aaf

Browse files
committed
github ci: Add automatic tag publisher
1 parent 7794d2f commit cbc1aaf

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

Diff for: .github/workflows/deploy.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
# IMPORTANT: this permission is mandatory for trusted publishing
14+
id-token: write
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.x'
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
python -m pip install build
26+
- name: Build package
27+
run: python -m build
28+
- name: Publish package distributions to PyPI
29+
uses: pypa/gh-action-pypi-publish@release/v1

Diff for: README.md

-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ Please have a look at the [Contributing Guidelines](https://github.com/radish-bd
5656
```
5757
vim CHANGELOG.md docs/conf.py radish/__init__.py
5858
git commit -am "release: vX.X.X" && git tag vX.X.X && git push && git push --tags
59-
rm -rf dist
60-
python3 setup.py sdist bdist_wheel
61-
python3 -m twine upload dist/*
6259
```
6360

6461
# Special Thanks

0 commit comments

Comments
 (0)