Skip to content

Commit a664770

Browse files
authored
0.8.0 Allow non-snapshot deployment through circleci (#57)
1 parent 5521114 commit a664770

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
--stacktrace
2525
assembleDebug
2626
- run:
27-
name: Import GPG Files
28-
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
27+
name: Import GPG Keys
28+
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
2929
- run:
3030
name: Deploy
3131
command: .circleci/deploy.sh

.circleci/deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ elif [ ! -z "$CIRCLE_PULL_REQUEST" ]; then
1616
elif [ "$CIRCLE_BRANCH" != "$BRANCH" ]; then
1717
echo "Skipping snapshot deployment: wrong branch. Expected '$BRANCH' but was '$CIRCLE_BRANCH'."
1818
else
19-
echo "Deploying snapshot..."
19+
echo "Deploying..."
2020
./gradlew uploadArchives \
2121
-Psigning.keyId="$SIGNING_KEY_ID" \
2222
-Psigning.password="$SIGNING_PASSWORD" \
2323
-Psigning.secretKeyRingFile="$HOME/.gnupg/secring.gpg"
24-
echo "Snapshot deployed!"
24+
echo "Deployed!"
2525
fi

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION_NAME=0.8.0
1+
VERSION_NAME=0.8.0-SNAPSHOT
22
GROUP=io.runtime.mcumgr
33

44
POM_DESCRIPTION=A mobile management library for devices running Apache Mynewt and Zephyr (DFU, logs, stats, config, etc.)

0 commit comments

Comments
 (0)