Skip to content

Commit

Permalink
Improve vesioning and pip release
Browse files Browse the repository at this point in the history
  • Loading branch information
ademariag committed Nov 18, 2023
1 parent 2404456 commit a8590ba
Show file tree
Hide file tree
Showing 4 changed files with 794 additions and 48 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/python-pip-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ concurrency:
cancel-in-progress: true

on:
push:
branches:
- master
- improve-pip-publish

release:
types: [created]

Expand All @@ -16,30 +21,20 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build and check
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |-
python -m build
twine check dist/*
- name: Test package upload
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TEST_TOKEN }}
run: |-
twine upload --repository testpypi dist/*
- name: Package upload
pip install poetry
poetry self add "poetry-dynamic-versioning[plugin]"
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |-
twine upload dist/*
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: poetry publish --build --dryrun
2 changes: 1 addition & 1 deletion kapitan/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"""Project description variables."""

PROJECT_NAME = "kapitan"
VERSION = "0.32.0"
VERSION = "0.32.1.dev146"
DESCRIPTION = "Generic templated configuration management for Kubernetes, Terraform and other things"
AUTHOR = "Ricardo Amaro"
AUTHOR_EMAIL = "[email protected]"
Expand Down
Loading

0 comments on commit a8590ba

Please sign in to comment.