Skip to content

Commit

Permalink
feat: generate test keys for pull requests (#34)
Browse files Browse the repository at this point in the history
* feat: generate test keys for pull requests
  • Loading branch information
joshua-stone committed Feb 12, 2023
1 parent 420740c commit 4254300
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,20 @@ jobs:
- name: Retrieve akmods signing key
run: |
mkdir -p certs
echo "${{ secrets.AKMOD_PRIVKEY }}" > certs/private_key.priv
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
openssl req -new \
-nodes \
-utf8 \
-sha256 \
-days 365 \
-batch \
-x509 \
-outform DER \
-out certs/public_key.der \
-keyout certs/private_key.priv
else
echo "${{ secrets.AKMOD_PRIVKEY }}" > certs/private_key.priv
fi
# DEBUG: get character count of key
wc -c certs/private_key.priv
Expand Down

0 comments on commit 4254300

Please sign in to comment.