Skip to content

Commit 212bc0a

Browse files
committed
Add gpg subkey for signing releases on Travis-CI
Encrypted with help from `travis encrypt-file` Use this for automating release process
1 parent 69bdf3a commit 212bc0a

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ prerequisites/build text
2121
*.tar binary
2222
*.gz binary
2323
*.tgz binary
24+
*.enc binary
2425

2526
# Prevent dev-ops files from making it into the release archives
2627
.travis.yml export-ignore
2728
.pullapprove.yml export-ignore
2829
.gitattributes export-ignore
2930
.gitignore export-ignore
3031
developer-scripts export-ignore
31-
codecov.yml export-ignore
32+
codecov.yml export-ignore
33+
*.enc export-ignore

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ matrix:
6767
- g++-6
6868

6969
before_install:
70+
- |
71+
set -o errexit
72+
if [[ "$TRAVIS_TAG" ]] && [[ "X$TRAVIS_OS_NAME" = "Xlinux" ]] && $TRAVIS_SECURE_ENV_VARS ; then
73+
openssl aes-256-cbc -K $encrypted_ef4535c39461_key -iv $encrypted_ef4535c39461_iv -in subkey-328B3A0E-secret.asc.enc -out ./subkey-328B3A0E-secret.asc -d
74+
gpg --allow-secret-key-import --import ./subkey-328B3A0E-secret.asc && rm subkey-328B3A0E-secret.asc
75+
fi
76+
set +o errexit
77+
- unset encrypted_ef4535c39461_key || true
78+
- unset encrypted_ef4535c39461_iv || true
79+
- rm subkey-328B3A0E-secret.asc{,.enc} || true
7080
- |
7181
set -o errexit
7282
if [[ $TRAVIS ]] && [[ "X$TRAVIS_OS_NAME" = "Xosx" ]]; then

subkey-328B3A0E-secret.asc.enc

6.56 KB
Binary file not shown.

0 commit comments

Comments
 (0)