Use webfactory/ssh-agent for the SSH setup

This commit is contained in:
Jonas Dellinger 2020-11-14 11:14:24 +01:00
parent 28a8f9f0c9
commit 35dbc7f57d
2 changed files with 4 additions and 6 deletions

View File

@ -15,7 +15,9 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 14.15.0
- name: Setup GitHub Deploy SSH Key
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.GH_DEPLOY_SSH_KEY }}
- name: Build & Deploy Documentation
run: ./SpotifyAPI.Docs/docs.sh
env:
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}

View File

@ -4,10 +4,6 @@ set -e
echo "Building docs..."
echo "$GH_DEPLOY_TOKEN" | base64 -d > "$HOME/.ssh/id_rsa"
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
git config --global user.email "jonas@dellinger.dev"
git config --global user.name "GH Actions Docs Builder"