-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (90 loc) · 3.05 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Deploy Website
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run: mkdir -p dist
- run: cp -rp *.png dist
- run: cp -rp *.jpg dist
# - run: cp -rp *.ico dist
- run: cp -rp *.svg dist
- run: cp -rp *.sketch dist
- name: Website
working-directory: dist
run: |
cat > index.html << EOF
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Source files of kktjs's logo.</title>
<style>
.header { color: #333; text-align: center; padding: 80px 0 60px 0; min-height: 153px; font-size: 14px; }
.content { text-align: center; }
.content a span { display: inline-block; padding-top: 10px; padding-bottom: 10px; }
.content a img { height: 60px; }
.content a {
display: inline-flex;
justify-content: center;
align-items: center;
flex-direction: column;
font-size: 12px;
width: 120px;
height: 120px;
background-color: #e8e8e8;
margin-top: 10px;
padding: 16px;
}
.footer { text-align: center; line-height: 20px; padding: 20px 0 20px 0; font-size: 12px;}
</style>
</head>
<body>
<div class="header">
<img src="./kkt.svg" alt="kktjs logo" width="120" />
</div>
<div class="content">
<a href="./kkt.svg" target="_blank">
<img src="./kkt.svg" alt="kktjs logo svg" />
<span>kkt.svg</span>
</a>
<a href="./[email protected]" target="_blank">
<img src="./[email protected]" alt="kktjs logo svg" />
<span>[email protected]</span>
</a>
<a href="./[email protected]" target="_blank">
<img src="./[email protected]" alt="kktjs logo svg" />
<span>[email protected]</span>
</a>
<a href="./[email protected]" target="_blank">
<img src="./[email protected]" alt="kktjs logo svg" />
<span>[email protected]</span>
</a>
<a href="./kkt.sketch" target="_blank">
<img src="./kkt.svg" alt="kktjs sketch" />
<span>kkt.sketch</span>
</a>
</div>
<div class="footer">
Licensed under MIT. (<a href="https://github.com/kktjs/logo" target="_blank">Github</a>)
<div>
Copyright 2021~present <a href="http://github.com/jaywcjlove" target="_blank">Kenny Wong</a>.
</div>
</div>
</body>
</html>
EOF
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist