-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add release configuration to publish it to pypi
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Publish Package to PyPi | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12.0 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12.0 | ||
- name: Display Python version | ||
run: python -c "import sys; print(sys.version)" | ||
- run: pip install virtualenv | ||
- run: virtualenv venv | ||
- run: source venv/bin/activate | ||
- run: pip install setuptools | ||
- run: python setup.py sdist | ||
- run: pip wheel . -w dist | ||
- run: python -m pip install --upgrade twine | ||
- run: twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters