We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 865c0a3 commit 1db7d96Copy full SHA for 1db7d96
.github/workflows/deploy.yml
@@ -23,7 +23,15 @@ jobs:
23
npm run build
24
25
- name: Deploy 🚀
26
+ env:
27
+ # Set GIT_SSH_COMMAND to use the SSH key from secrets
28
+ GIT_SSH_COMMAND: "ssh -i ~/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
29
run: |
30
+ # Create the .ssh directory and add the private key
31
+ mkdir -p ~/.ssh
32
+ echo "${{ secrets.GH_PAGES_DEPLOY_KEY }}" > ~/.ssh/id_rsa
33
+ chmod 600 ~/.ssh/id_rsa
34
+
35
git config --global user.name 'github-actions-bot'
36
git config --global user.email 'support+actions@github.com'
- npx gh-pages -d build -r git@github.com:${{ github.repository }}.git
37
+ npx gh-pages -d build -r git@github.com:${{ github.repository }}.git
0 commit comments