Skip to content

Commit 382bfbf

Browse files
Fixes #11, Adds GPG signing method (#12)
1 parent f4a5fb7 commit 382bfbf

5 files changed

Lines changed: 7 additions & 8 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
composer.lock
22
/vendor/
33
/bin/php-doc-check.phar
4-
/bin/php-doc-check.phar.pubkey
4+
/bin/php-doc-check.phar.asc
55
/.travis/php-doc-check-phar-private.pem
66
/.travis/secrets.tar

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ script:
2020
- ls .travis/
2121
- vendor/bin/box build
2222
- "php ./bin/php-doc-check.phar -d ./ --exclude vendor/"
23-
before_install:
24-
- openssl aes-256-cbc -K $encrypted_58878b370333_key -iv $encrypted_58878b370333_iv -in .travis/secrets.tar.enc -out .travis/secrets.tar -d
25-
- tar xvf .travis/secrets.tar -C .travis
23+
before_deploy:
24+
- echo $DECRYPT_KEY | gpg --passphrase-fd 0 .travis/keys.asc.gpg
25+
- gpg --batch --yes --import .travis/keys.asc
26+
- echo $SIGN_KEY | gpg --passphrase-fd 0 -u A010FF892D26859A --armor --detach-sig bin/php-doc-check.phar
2627
deploy:
2728
provider: releases
2829
skip_cleanup: true
2930
api_key:
3031
secure: ojBG9y3UL202hOM8Pzs8sNidw6wFWe0u+3dO6hIbCbbAE2QZ/PsQtNURC4xT2BgBri8/dkYiUh4nlrB/+9ai/S/rSp3SlHaInfT77uwomnlMDYxi4Cic2PJ1t75NnDlTD06BSttCLzN6WwrUE6E2CVWe3jVaduNuutee3IzODFXZOJQSs34KWOdpXKlTIoaBjREQsJyM2G3hhSFVT6pUtb4jLaVJ/vWT7158iyjwMr9x8Xn9t4Nh6iOuK5wkkKuV+N2QQMZD4whMfyLU2IwszgeWZ2ZK19TGS69vuESkwwDkZof0PuNuCFIWOTN/20QyuKCSllBxUX0AoOHlU0TY1ipi+TRl4DGVDnYFXHDrG1P/KfF9FscttmkP63hS7XTkEtxzidPqHeg5prh00zeMdhoRJINiM6sPsy4Vf8rS8GYD+IUbUIHEbmSYvYOrs7WFeULn328E9OAa8RCvL0DycvZNsEGqabnInr5Jvp8VnEfpoDkkxB9enci+JSYoCAKHKxheLdbBLNb2B5X5Rhhs7lleV1vNe1Ir/30PlVeWg5GRNpkzVhAlTupnkS1sKKmt8MpP4s3OEBvGcy7POMmIJZ9tMXk7YkfpeQBM0OXhBhZPGj1FGtodaTlyABvGRtuILNoSpQALkzS1eIkwDbBQd/X4VDIsvKauKJ/tCku9fq0=
3132
file:
3233
- bin/php-doc-check.phar
33-
- bin/php-doc-check.phar.pubkey
34+
- bin/php-doc-check.phar.asc
3435
on:
3536
tags: true
3637
condition: "$EXECUTE_DEPLOYMENT"

.travis/keys.asc.gpg

6.87 KB
Binary file not shown.

.travis/secrets.tar.enc

-5.02 KB
Binary file not shown.

box.json.dist

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@
99
"in": "vendor"
1010
}
1111
],
12-
"stub": true,
13-
"algorithm": "OPENSSL",
14-
"key": ".travis/php-doc-check-phar-private.pem"
12+
"stub": true
1513
}

0 commit comments

Comments
 (0)