2525jobs :
2626 checks :
2727 if : github.event_name != 'push'
28- name : Build Documentation
2928 runs-on : ubuntu-latest
3029 steps :
31- - uses : actions/checkout@v2
30+ - uses : actions/checkout@v1
31+ - uses : actions/setup-node@v1
32+ with :
33+ node-version : ' 12.x'
3234
3335 - name : Get yarn cache directory path
3436 id : yarn-cache-dir-path
@@ -49,10 +51,23 @@ jobs:
4951 yarn build
5052 gh-release :
5153 if : github.event_name != 'pull_request'
52- name : Build & Release Documentation
5354 runs-on : ubuntu-latest
5455 steps :
55- - uses : actions/checkout@v2
56+ - uses : actions/checkout@v1
57+
58+ - name : Add key to allow access to repository
59+ env :
60+ SSH_AUTH_SOCK : /tmp/ssh_agent.sock
61+ run : |
62+ mkdir -p ~/.ssh
63+ ssh-keyscan github.com >> ~/.ssh/known_hosts
64+ echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
65+ chmod 600 ~/.ssh/id_rsa
66+ cat <<EOT >> ~/.ssh/config
67+ Host github.com
68+ HostName github.com
69+ IdentityFile ~/.ssh/id_rsa
70+ EOT
5671
5772 - name : Get yarn cache directory path
5873 id : yarn-cache-dir-path
@@ -69,14 +84,13 @@ jobs:
6984 - name : Release to GitHub Pages
7085 env :
7186 USE_SSH : true
72- GIT_USER : github-actions
87+ GIT_USER : git
7388 CURRENT_BRANCH : main
7489 DEPLOYMENT_BRANCH : gh-pages
7590 github_token : ${{ secrets.GITHUB_TOKEN }}
7691 run : |
77- date > generated.txt
78- git config user.name github-actions
79- git config user.email [email protected] 92+ git config --global user.email "[email protected] " 93+ git config --global user.name "gh-actions"
8094 yarn install --frozen-lockfile
8195 cd docs
8296 yarn install --frozen-lockfile
0 commit comments