Skip to content

Commit c18daa0

Browse files
add new page build deploy key, fixes #50
for github actions only, used to push the built html pages to the master branch of this repository. travis-ci still uses the old key (from enkore), but we'll kill travis-ci soon anyway.
1 parent 209aa28 commit c18daa0

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/keys/github_deploy_key.asc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-----BEGIN PGP MESSAGE-----
2+
3+
jA0ECQMCpidl1vzMukTu0sCVASOxGIzRDhUCIdeSGZrBqdNPzZdKqAcO8Nd9iELT
4+
s85kHwCX7MbFHoSOEUFnP2xQEiQh9lBf4fik5hZhaa4J3ewLYSxYU7yWimg2QBKC
5+
tAmW8nxu91QJkOpz6kqEVmTm7n7QFy6XO+Ivy+XUmlklvCi52/EnvKWyQEWOZXTn
6+
2R3SSbtKWIwS4g5LalxcCU5kGwWp1ClzJMBhXz5kvcrIOv9BvqY/HyFOyenBx5bE
7+
LNcCFOMpC7Q0y4bnvilY1sAaA+By40HJnUAzez1U+dsOAJ7GQjbj/78RpqE1Jswj
8+
0K7RqgPVAlsRSuenvdbdbdpA64rFH2k1wol/0tvXb9KTPi5uIB6dSmYXPADZ7ZoE
9+
zUqTkJHygqHZcMHznQH4cGQz0UhZ9+MfVa0A54xtUv9WsCOOmKpl58vVcWWqg+KB
10+
sNd+ynn9E/lr1KrQLKVnIygxLD3w0kM=
11+
=JsQf
12+
-----END PGP MESSAGE-----

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
- name: Publish pages to web
1313
shell: bash
1414
env:
15-
encrypted_54b6162b97cf_key: ${{ secrets.encrypted_key }}
16-
encrypted_54b6162b97cf_iv: ${{ secrets.encrypted_iv }}
15+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
1716
run: |
1817
# Only build the "source" branch ("master" = built, published pages,
1918
# this can't be changed for organization GitHub Pages)
@@ -42,7 +41,7 @@ jobs:
4241
# The public key is set up as a deployment key in the GitHub repository.
4342
# The following document explains the process:
4443
# https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets
45-
openssl aes-256-cbc -K $encrypted_54b6162b97cf_key -iv $encrypted_54b6162b97cf_iv -in .travis/github_deploy_key.enc -out github_deploy_key -d
44+
gpg --quiet --batch --yes --decrypt --passphrase="$GPG_PASSPHRASE" --output github_deploy_key .github/keys/github_deploy_key.asc
4645
4746
# Add the SSH key
4847
chmod 600 github_deploy_key

0 commit comments

Comments
 (0)