Resolve deploy key from secrets
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -27,5 +27,7 @@ jobs:
|
|||||||
run: bash scripts/build.sh
|
run: bash scripts/build.sh
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: bash scripts/deploy.sh
|
|
||||||
if: github.repository == 'tldr-pages/tldr' && github.branch == 'master'
|
if: github.repository == 'tldr-pages/tldr' && github.branch == 'master'
|
||||||
|
run: bash scripts/deploy.sh
|
||||||
|
env:
|
||||||
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
@@ -20,7 +20,7 @@ function initialize {
|
|||||||
|
|
||||||
# Decrypt and add deploy key.
|
# Decrypt and add deploy key.
|
||||||
eval "$(ssh-agent -s)"
|
eval "$(ssh-agent -s)"
|
||||||
openssl aes-256-cbc -K "$encrypted_973441be79af_key" -iv "$encrypted_973441be79af_iv" -in ./scripts/id_ed25519_tldr_asset_upload.enc -out id_ed25519 -d
|
echo "${DEPLOY_KEY}"> id_ed25519
|
||||||
chmod 600 id_ed25519
|
chmod 600 id_ed25519
|
||||||
ssh-add id_ed25519
|
ssh-add id_ed25519
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user