diff --git a/.circleci/config.yml b/.circleci/config.yml index dd865637..5f89f016 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,8 +24,8 @@ jobs: --stacktrace assembleDebug - run: - name: Import GPG Files - command: gpg --version && mkdir -p ~/.gnupg && echo "$SIGNING_PUBLIC_KEY_RING" | base64 --decode > ~/.gnupg/pubring.kbx && mkdir -p ~/.gnupg && echo "$SIGNING_TRUST_DB" | base64 --decode > ~/.gnupg/trustdb.gpg && echo "$SIGNING_SECRET_KEY_RING" | base64 --decode > ~/.gnupg/secring.gpg && gpg -k + name: Import GPG Keys + command: echo "$SIGNING_SECRET_KEY" | base64 --decode > ~/mcumgr-private.asc && gpg --batch --import ~/mcumgr-private.asc && echo "$SIGNING_PASSWORD" > ~/mcumgr-private-passphrase && gpg --pinentry-mode loopback --passphrase-file ~/mcumgr-private-passphrase --keyring secring.gpg --export-secret-keys > ~/.gnupg/secring.gpg - run: name: Deploy command: .circleci/deploy.sh diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh index 0bb7ebf3..fce28bdb 100755 --- a/.circleci/deploy.sh +++ b/.circleci/deploy.sh @@ -16,10 +16,10 @@ elif [ ! -z "$CIRCLE_PULL_REQUEST" ]; then elif [ "$CIRCLE_BRANCH" != "$BRANCH" ]; then echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$CIRCLE_BRANCH'." else - echo "Deploying snapshot..." + echo "Deploying..." ./gradlew uploadArchives \ -Psigning.keyId="$SIGNING_KEY_ID" \ -Psigning.password="$SIGNING_PASSWORD" \ -Psigning.secretKeyRingFile="$HOME/.gnupg/secring.gpg" - echo "Snapshot deployed!" + echo "Deployed!" fi diff --git a/gradle.properties b/gradle.properties index f65edcd9..de948c83 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=0.8.0 +VERSION_NAME=0.8.0-SNAPSHOT GROUP=io.runtime.mcumgr POM_DESCRIPTION=A mobile management library for devices running Apache Mynewt and Zephyr (DFU, logs, stats, config, etc.)