File tree Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -22,30 +22,13 @@ jobs:
2222 - name : Install dependencies
2323 if : steps.cache.outputs.cache-hit != 'true'
2424 run : yarn install --frozen-lockfile --cwd ./website
25- - name : Add ssh keys
26- env :
27- SSH_AUTH_SOCK : /tmp/ssh_agent.sock
28- run : |
29- mkdir -p ~/.ssh
30- ssh-keyscan github.com >> ~/.ssh/known_hosts
31- echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
32- chmod 600 ~/.ssh/id_rsa
33- cat <<EOT >> ~/.ssh/config
34- Host github.com
35- HostName github.com
36- IdentityFile ~/.ssh/id_rsa
37- EOT
3825 - name : Release
3926 working-directory : ./website
40- env :
41- USE_SSH : true
42- GIT_USER : git
43- NAME : ${{ secrets.GH_PAGES_DEPLOY_NAME }}
44- EMAIL : ${{ secrets.GH_PAGES_DEPLOY_EMAIL }}
4527 run : |
46- git config --global user.email "$EMAIL"
47- git config --global user.name "$NAME"
48- yarn deploy
28+ git config --global user.name ${{ secrets.GH_DEPLOY_NAME }}
29+ git config --global user.email ${{ secrets.GH_DEPLOY_EMAIL }}
30+ echo "machine github.com login ${{ secrets.GH_DEPLOY_NAME }} password ${{ secrets.GH_DEPLOY_TOKEN }}" > ~/.netrc
31+ GIT_USER=${{ secrets.GH_DEPLOY_NAME }} yarn run deploy
4932
5033
5134
Original file line number Diff line number Diff line change 22
33Built using [ Docusaurus 2] ( https://v2.docusaurus.io/ ) .
44
5-
65## Development
76
87### Installation
You can’t perform that action at this time.
0 commit comments