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:
22
22
- name : Install dependencies
23
23
if : steps.cache.outputs.cache-hit != 'true'
24
24
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
38
25
- name : Release
39
26
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 }}
45
27
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
49
32
50
33
51
34
Original file line number Diff line number Diff line change 2
2
3
3
Built using [ Docusaurus 2] ( https://v2.docusaurus.io/ ) .
4
4
5
-
6
5
## Development
7
6
8
7
### Installation
You can’t perform that action at this time.
0 commit comments