File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+
11
+ jobs :
12
+ gh-release :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v1
16
+ - uses : actions/setup-node@v1
17
+ with :
18
+ node-version : ' 12.x'
19
+
20
+ - name : Add key to allow access to repository
21
+ env :
22
+ SSH_AUTH_SOCK : /tmp/ssh_agent.sock
23
+ run : |
24
+ mkdir -p ~/.ssh
25
+ ssh-keyscan github.com >> ~/.ssh/known_hosts
26
+ echo "${{ secrets.GH_PAGES_DEPLOY }}" > ~/.ssh/id_rsa
27
+ chmod 600 ~/.ssh/id_rsa
28
+ cat <<EOT >> ~/.ssh/config
29
+ Host github.com
30
+ HostName github.com
31
+ IdentityFile ~/.ssh/id_rsa
32
+ EOT
33
+
34
+ - name : Setup Git config
35
+ run : |
36
+ git config --global user.email "actions@gihub.com"
37
+ git config --global user.name "gh-actions"
38
+
39
+ - name : Release to GitHub Pages
40
+ env :
41
+ USE_SSH : true
42
+ GIT_USER : git
43
+ run : |
44
+ yarn install
45
+ yarn deploy
You can’t perform that action at this time.
0 commit comments