Commit 72e44e84 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix tagged builds with pre/post/dev/local tags

parent b33d365c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -152,13 +152,16 @@ Build Packages:
  rules:
    - if: $CI_COMMIT_TAG =~ /^v[0-9]/
      variables:
        BUILD_NUMBER: ${CI_COMMIT_TAG#*-}
        BUILD_NUMBER: ${CI_COMMIT_TAG}
        STRIP_RELEASE: "true"
    - when: on_success
  script:
    - set -x
    - NAME=`./setup.py --name`
    - VERSION=`./setup.py --version`
    - WHEEL_BASE="${NAME//-/_}-${VERSION}"
    - SDIST_BASE="${NAME}-${VERSION}"
    - ${STRIP_RELEASE-false} && BUILD_NUMBER=${BUILD_NUMBER#*-}
    - mkdir dist
    - ./setup.py
      bdist_wheel --dist-dir build