Skip to content

Commit

Permalink
Trying out pypi upload via github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed Aug 5, 2023
1 parent fa60edd commit 894d01b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/upload-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Upload to PyPi

on:
release:
types:
- published

jobs:

upload-to-pypi:
name: Upload to Pypi
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: install dependencies
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade twine
- name: create release binaries
run: |
python setup.py sdist bdist_wheel
- name: publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token }}
2 changes: 1 addition & 1 deletion datkit/_datkit_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# incompatibility
# - Changes to revision indicate bugfixes, tiny new features
# - There is no significance to odd/even numbers
__version_tuple__ = 0, 0, 1
__version_tuple__ = 0, 0, 2

# String version of the version number
__version__ = '.'.join([str(x) for x in __version_tuple__])
Expand Down

0 comments on commit 894d01b

Please sign in to comment.