Browse Source

update docs deployment key

pull/2656/head
beardypig 2 years ago
committed by bastimeyer
parent
commit
8860ba8e14
  1. 4
      .github/workflows/main.yml
  2. 1
      doctr_deploy_key.enc
  3. BIN
      id_rsa_docs.gpg
  4. 12
      script/deploy-docs.sh

4
.github/workflows/main.yml

@ -10,6 +10,7 @@ env:
STREAMLINK_DIST_DIR: ${{ github.workspace }}/dist
SIGNING_KEY_ID: 2E390FA0
SIGNING_KEY_FILE: ${{ github.workspace }}/signing.key
DOCS_KEY_FILE: ${{ github.workspace }}/id_rsa_docs
jobs:
test:
@ -118,8 +119,7 @@ jobs:
run: make --directory=docs html
- name: Deploy
env:
DOCS_DEPLOY_KEY: ${{ secrets.DOCS_DEPLOY_KEY }}
DOCS_DEPLOY_IV: ${{ secrets.DOCS_DEPLOY_IV }}
DOCS_KEY_PASSPHRASE: ${{ secrets.DOCS_KEY_PASSPHRASE }}
run: ./script/deploy-docs.sh
release:

1
doctr_deploy_key.enc

@ -1 +0,0 @@
gAAAAABbBZoRMJdgnsQIIsEkTNnqu5QyTanYS7ThpF-RS9CCVWUi8m4Izchzcnsa3vJlkNZeJcUy50PnSfHk4tuw2BT4EU19F9anBPR28FVbPFq9ld3MOumyYm3nx3RSXeejY36TCiXLgYSkwrzkQ31m2H-JO7GiHnRiMw6djW1XXSdjztVcq8__L9Di412VdBZjkoJMp4P8tryFyxFlLT-oHwxWy1ANF6S68wwhjwkxj57aB07uqVstqOC5Saddto_J3dBXn6hLMjGcesM39WV8L3y5xpODoOMBgFeDpjBoIEN641vFcYtqme6nn-kPargEVef1cLKlsfTFghaQ5bxA-vOnNMrHqP0ap9Auv9WXI1TtCKbPpNGsP5ezz6ViIPaOOcDC-1bU4l1c1T6_-V-0-10HZPUr7f8JFko218GdTOewpZ4RA8ca7LbJXmegcyqMQSWowrQUcPNSaKxqH3FTtxHj9rCLiIxamd53eTj2mLLe-zaZ-I1GtyWl9Ix1GNTXZICyDdnZZvgh9OKnlIq3hInSYjE4mJWXni6cY9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XkcQbVWlBMBZZpDQVP7Qou1sJ-3gXnw3yrEctn1Iscdwc-2HF0HKPRYVyG3-6qres2d2w9Pzsr1aguTjKyXlpsxLYb-OEDGyKiqVPfYrGqSpQ_GATseVdKTfuF-417o4R7HMTRIIZW_XM6jP3bb3EMZauEfAeI1TArgOWoNjNwMb35oGt6xiIiAXMPzVkf8D9IB_mMg08uFYcAE_lgfDYKM5I2U5vDJEPRvGxwlTLXD99CzHyTuV7Ih02yUN1sTWV0Lhh0q5efx2cTDN9Xv7zP71CsfXILwy8m1DVMHsmChGSBZHDNapx5aWZi237w87zEHPN69o4L5x8JXYU9d5nCE-oPSg0GuZa0JrM81dIXFCD5KXDloYk4eHIrCxPf2qDXlfpgb9JdCcQrTSyfghFzCXyf5WNuqOnpYtFPjJsOjD5cox2vkEB2AqDKNgrNlm4e1MhhYK8OVfNOWD796RCcr8mPgz72yI7_d_3-RjodGuKNPg7p4vtMWPAuYdzzRc0PLdS6RFC3NpM4glX7GYgeiCe4iA0wohp4MIQhFuliw_whsIe1sCQisDgg5lyMLT698oH490z03Ti_Mg5Y8eodCro2Bvw3BqO7w8UNwiskB7uYhESsiNBFcrd8A5LtAuyvKu-y-fWDjEcNAlnIGdSgxKkg==

BIN
id_rsa_docs.gpg

Binary file not shown.

12
script/deploy-docs.sh

@ -11,7 +11,7 @@ DOCS_BRANCH=${DOCS_BRANCH:-master}
DOCS_USER=${DOCS_USER:-streamlink-bot}
DOCS_EMAIL=${DOCS_EMAIL:-streamlink-bot@users.noreply.github.com}
KEY_FILE=${DOCS_KEY_FILE:-"${ROOT}/docs.key"}
KEY_FILE_ENC=${KEY_FILE}.enc
KEY_FILE_ENC=${KEY_FILE}.gpg
SOURCE=${DOCS_DIR:-"${ROOT}/docs/_build/html"}
FILELIST=".doctr-files"
@ -34,12 +34,10 @@ fi
if ! [[ -f "${KEY_FILE}" ]]; then
echo Decrypting documentation deploy key
openssl aes-256-cbc \
-K "${DOCS_DEPLOY_KEY}" \
-iv "${DOCS_DEPLOY_IV}" \
-in "${KEY_FILE_ENC}" \
-out "${KEY_FILE}" \
-d
gpg --quiet --batch --yes --decrypt \
--passphrase="${DOCS_KEY_PASSPHRASE}" \
--output "${KEY_FILE}" \
"${KEY_FILE_ENC}"
chmod 600 "${KEY_FILE}"
fi
# make sure that no SSH config file and that the docs deploy key is used by git

Loading…
Cancel
Save