Commit 0255c746 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'gpg-fix' into 'master'

fix(gpg): create base folder if not present

Closes #32

See merge request to-be-continuous/semantic-release!46
parents 217d2222 d69fae20
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -576,6 +576,11 @@ stages:

    log_info "Setting commit signing up."

    if [[ ! -f "${HOME}/.gnupg" ]]; then
      log_info "creating GPG base configuration"
      gpg -k
    fi

    if [[ ! -f "${SEMREL_GPG_SIGNKEY}" ]]; then
      fail "SEMREL_GPG_SIGNKEY is not a file."
    fi