mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Use webfactory/ssh-agent for the SSH setup
This commit is contained in:
parent
28a8f9f0c9
commit
35dbc7f57d
6
.github/workflows/docs.yaml
vendored
6
.github/workflows/docs.yaml
vendored
@ -15,7 +15,9 @@ jobs:
|
|||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14.15.0
|
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
|
- name: Build & Deploy Documentation
|
||||||
run: ./SpotifyAPI.Docs/docs.sh
|
run: ./SpotifyAPI.Docs/docs.sh
|
||||||
env:
|
|
||||||
GH_DEPLOY_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}
|
|
||||||
|
@ -4,10 +4,6 @@ set -e
|
|||||||
|
|
||||||
echo "Building docs..."
|
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.email "jonas@dellinger.dev"
|
||||||
git config --global user.name "GH Actions Docs Builder"
|
git config --global user.name "GH Actions Docs Builder"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user