Skip to content

Commit

Permalink
adjusted pipeline to control version number for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
felbinger committed Oct 12, 2023
1 parent 72001a4 commit ee7faf7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel
- name: "Find version"
if: startsWith(github.ref, 'refs/tags/')
id: meta
uses: docker/metadata-action@v5
with:
images: image
tags: type=semver,pattern={{version}}

- name: "Adjust version number in setup.cfg"
if: startsWith(github.ref, 'refs/tags/')
run: |
sed -i'' "s/0\\.0\\.0-git/${{ steps.meta.outputs.version }}/" setup.cfg
- name: Build Python package
run: python setup.py sdist bdist_wheel

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = django-wpm
version = 0.1
version = 0.0.0-git
description = A Django app to manage wireguard peers on wireguard capable routers.
long_description = file: README.md
url = https://github.com/secshellnet/wpm-django
Expand Down

0 comments on commit ee7faf7

Please sign in to comment.