Commit ca142ec3 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

fix: clean up git step of semantic release

parent 8b20ffa3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6,7 +6,9 @@ python:semantic-release:version:
    EXTRA_ARGS: ""
  script:
    - pip install python-semantic-release
    - NEW_TAG=$(semantic-release print-version)
    - GIT_COMMITTER_NAME=semantic-release GIT_COMMITTER_EMAIL=semantic-release semantic-release version ${EXTRA_ARGS}
    - (git tag -d "${NEW_TAG}" 2>/dev/null && git reset HEAD~1) || true
  artifacts:
    paths:
      - ./*