Skip to content

Commit

Permalink
use subprocess for output
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 2, 2024
1 parent d04bd09 commit 98d4444
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ jobs:
run: |
tmpdir=$(mktemp -d lksite.XXXXXX)
echo "$AGE_DECRYPT" >$tmpdir/decrypt-identity
echo 'deploy-key<<EOK' >>$GITHUB_OUTPUT
age -d -i $tmpdir/decrypt-identity etc/doc-deploy-key.asc >>$GITHUB_OUTPUT
echo 'EOK' >>$GITHUB_OUTPUT
(
echo 'deploy-key<<EOK'
age -d -i $tmpdir/decrypt-identity etc/doc-deploy-key.asc
echo 'EOK'
) >>$GITHUB_OUTPUT
rm -rf $tmpdir
env:
AGE_DECRYPT: ${{ secrets.DOC_DEPLOY_DECRYPT_KEY }}
Expand Down
8 changes: 5 additions & 3 deletions lkdev/workflows/docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ def job_publish_docs():
"run": script("""
tmpdir=$(mktemp -d lksite.XXXXXX)
echo "$AGE_DECRYPT" >$tmpdir/decrypt-identity
echo 'deploy-key<<EOK' >>$GITHUB_OUTPUT
age -d -i $tmpdir/decrypt-identity etc/doc-deploy-key.asc >>$GITHUB_OUTPUT
echo 'EOK' >>$GITHUB_OUTPUT
(
echo 'deploy-key<<EOK'
age -d -i $tmpdir/decrypt-identity etc/doc-deploy-key.asc
echo 'EOK'
) >>$GITHUB_OUTPUT
rm -rf $tmpdir
"""),
"env": {
Expand Down

0 comments on commit 98d4444

Please sign in to comment.