Skip to content

Commit

Permalink
Fix GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
rhengeveldbordex committed Jun 6, 2024
1 parent fdc8498 commit 8c736c1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

22 changes: 15 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Publish Python Package

on:
Expand Down Expand Up @@ -28,27 +36,27 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build bump2version
pip install build bump
- name: Bump version
run: |
bump2version --config-file .bumpversion.cfg --allow-dirty --verbose minor
bump
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git commit -m "Bump minor version [skip ci]"
git commit -am "Bump minor version [skip ci]"
git push
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@v1.4.2
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name="transsmart_connector",
version="0.0.1",
version="0.1.0",
packages=find_packages(),
install_requires=[
'requests >= 2.31.0',
Expand Down
1 change: 0 additions & 1 deletion transsmart_connector/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
__version__ = "0.0.1"
from .transsmart_connector import TranssmartConnector

0 comments on commit 8c736c1

Please sign in to comment.