Skip to content

Commit

Permalink
github ci: Add automatic tag publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix committed Dec 21, 2024
1 parent 7794d2f commit cbc1aaf
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Upload Python Package

on:
release:
types: [published]

jobs:
deploy:

runs-on: ubuntu-latest

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build package
run: python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ Please have a look at the [Contributing Guidelines](https://github.com/radish-bd
```
vim CHANGELOG.md docs/conf.py radish/__init__.py
git commit -am "release: vX.X.X" && git tag vX.X.X && git push && git push --tags
rm -rf dist
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
```

# Special Thanks
Expand Down

0 comments on commit cbc1aaf

Please sign in to comment.