Skip to content

Commit 35dbc7f

Browse files
committed
Use webfactory/ssh-agent for the SSH setup
1 parent 28a8f9f commit 35dbc7f

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎.github/workflows/docs.yaml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ jobs:
1515
uses: actions/setup-node@v1
1616
with:
1717
node-version: 14.15.0
18+
- name: Setup GitHub Deploy SSH Key
19+
uses: webfactory/ssh-agent@v0.4.1
20+
with:
21+
ssh-private-key: ${{ secrets.GH_DEPLOY_SSH_KEY }}
1822
- name: Build & Deploy Documentation
1923
run: ./SpotifyAPI.Docs/docs.sh
20-
env:
21-
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}

‎SpotifyAPI.Docs/docs.sh‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ set -e
44

55
echo "Building docs..."
66

7-
echo "$GH_DEPLOY_TOKEN" | base64 -d > "$HOME/.ssh/id_rsa"
8-
chmod 700 ~/.ssh
9-
chmod 600 ~/.ssh/id_rsa
10-
117
git config --global user.email "jonas@dellinger.dev"
128
git config --global user.name "GH Actions Docs Builder"
139

0 commit comments

Comments
 (0)