Skip to content

Commit

Permalink
0.8.0 Allow non-snapshot deployment through circleci (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgiori committed Jun 4, 2019
1 parent 5521114 commit a664770
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .circleci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -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.)
Expand Down

0 comments on commit a664770

Please sign in to comment.