File tree 3 files changed +169
-156
lines changed
3 files changed +169
-156
lines changed Original file line number Diff line number Diff line change
1
+ name : documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - docs-test
7
+
8
+ jobs :
9
+ gh-release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v1
13
+ - uses : actions/setup-node@v1
14
+ with :
15
+ node-version : " 14.x"
16
+ - name : Add key to allow access to repository
17
+ env :
18
+ SSH_AUTH_SOCK : /tmp/ssh_agent.sock
19
+ run : |
20
+ mkdir -p ~/.ssh
21
+ ssh-keyscan github.com >> ~/.ssh/known_hosts
22
+ echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
23
+ chmod 600 ~/.ssh/id_rsa
24
+ cat <<EOT >> ~/.ssh/config
25
+ Host github.com
26
+ HostName github.com
27
+ IdentityFile ~/.ssh/id_rsa
28
+ EOT
29
+ - name : Release to GitHub Pages
30
+ env :
31
+ USE_SSH : true
32
+ GIT_USER : git
33
+ run : |
34
+ git config --global user.email "[email protected] "
35
+ git config --global user.name "gh-actions"
36
+ cd website
37
+ if [ -e yarn.lock ]; then
38
+ yarn install --frozen-lockfile
39
+ elif [ -e package-lock.json ]; then
40
+ npm ci
41
+ else
42
+ npm i
43
+ fi
44
+ npx docusaurus deploy
You can’t perform that action at this time.
0 commit comments