diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 22e6b1731aa5..36e2d23e5173 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -69,9 +69,7 @@ jobs: git add . git commit -m "Automatic deploy to GitHub Pages: ${SHA}" - echo ${{ secrets.DEPLOY_KEY }} > .github/deploy_key - chmod 600 .github/deploy_key eval "$(ssh-agent -s)" - ssh-add .github/deploy_key + ssh-add - <<< "${{ secrets.DEPLOY_KEY }}" git push "$SSH_REPO" "$TARGET_BRANCH"