From fe91d6e67c2a196409dc8165659e051fcd5b5386 Mon Sep 17 00:00:00 2001 From: jem Date: Fri, 3 Jul 2020 14:14:49 +0200 Subject: [PATCH] release --- .github/workflows/release.yml | 11 ++++++++++- README.md | 12 +++++------- build.py | 2 +- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0417633..0610a0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,16 @@ jobs: python -m pip install --upgrade pip pip install pybuilder ddadevops deprecation setuptools - - name: build em + - name: build stable release + if: ${{ github.tag == '[0-9]+.[0-9]+.[0-9]' }} + env: + TWINE_USERNAME: dda + TWINE_PASSWORD: ${{ secrets.PYPI_DDA }} + run: | + pyb -P version=${{ github.tag }} publish upload + + - name: build unstable release + if: ${{ github.tag != '[0-9]+.[0-9]+.[0-9]' }} env: TWINE_USERNAME: dda TWINE_PASSWORD: ${{ secrets.PYPI_DDA }} diff --git a/README.md b/README.md index d6f6a62..6ab88f2 100644 --- a/README.md +++ b/README.md @@ -216,14 +216,12 @@ def rotate_credentials_out(project): 1. every push will be published as dev-dependency ## Release -1. remove "dev" from version no in build.py 1. git commit -am "release" -2. git tag [version] -4. git push --tag -5. increase version no in build.py & append *.dev -7. git commit -am "version bump" -8. git push -9. pip3 install --upgrade --user ddadevops +2. git push --follow-tags +3. increase version no in build.py +4. git commit -am "version bump" +5. git push +6. pip3 install --upgrade --user ddadevops # License diff --git a/build.py b/build.py index 1a3fe03..7628442 100644 --- a/build.py +++ b/build.py @@ -28,7 +28,7 @@ use_plugin("python.distutils") default_task = "publish" name = "ddadevops" -version = "0.8.7" +version = "0.8.8.dev" summary = "tools to support builds combining gopass, terraform, dda-pallet, aws & hetzner-cloud" description = __doc__ authors = [Author("meissa GmbH", "buero@meissa-gmbh.de")]