2525jobs :
2626 checks :
2727 if : github.event_name != 'push'
28+ name : Build Documentation
2829 runs-on : ubuntu-latest
2930 steps :
30- - uses : actions/checkout@v1
31- - uses : actions/setup-node@v1
32- with :
33- node-version : ' 12.x'
31+ - uses : actions/checkout@v2
3432
3533 - name : Get yarn cache directory path
3634 id : yarn-cache-dir-path
@@ -51,23 +49,10 @@ jobs:
5149 yarn build
5250 gh-release :
5351 if : github.event_name != 'pull_request'
52+ name : Build & Release Documentation
5453 runs-on : ubuntu-latest
5554 steps :
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
55+ - uses : actions/checkout@v2
7156
7257 - name : Get yarn cache directory path
7358 id : yarn-cache-dir-path
@@ -84,13 +69,14 @@ jobs:
8469 - name : Release to GitHub Pages
8570 env :
8671 USE_SSH : true
87- GIT_USER : git
72+ GIT_USER : github-actions
8873 CURRENT_BRANCH : main
8974 DEPLOYMENT_BRANCH : gh-pages
9075 github_token : ${{ secrets.GITHUB_TOKEN }}
9176 run : |
92- git config --global user.email "[email protected] " 93- git config --global user.name "gh-actions"
77+ date > generated.txt
78+ git config user.name github-actions
79+ git config user.email [email protected] 9480 yarn install --frozen-lockfile
9581 cd docs
9682 yarn install --frozen-lockfile
0 commit comments