Skip to content

Commit 75f9bfa

Browse files
committed
2 parents 8a58ece + f65a309 commit 75f9bfa

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

.github/workflows/node.js.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
branches: ["master"]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [16.20.1]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- uses: pnpm/action-setup@v2
28+
with:
29+
version: 7
30+
- run: pnpm install
31+
- run: pnpm run docs:build
32+
- name: Deploy
33+
uses: easingthemes/[email protected]
34+
env:
35+
#私钥
36+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
37+
#SCp参数
38+
ARGS: "-rltgoDzvO --delete"
39+
#源目录
40+
SOURCE: "./docs/build/English-Burning-Website-Dist"
41+
#服务器Ip:换成你的服务器iP
42+
REMOTE_HOST: ${{ secrets.SERVER_IP_ADDRESS }}
43+
#用户
44+
REMOTE_USER: ${{ secrets.SERVER_USER }}
45+
#目标地址
46+
TARGET: "/var/www/html"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# CS Reading
2-
<img src="https://github.com/tolerious/Programming_learning_resource/blob/master/logo-color.png?raw=true" style="width:400px">
2+
<img src="https://github.com/tolerious/Programming_learning_resource/blob/master/logo-color.png?raw=true" style="height:500px">
33

44
不知不觉,仓库已经存在多年,前段时间凑巧看到几篇博文的推荐,心想对仓库进行下整理,希望能够帮助到更多在求索之路上的,[欢迎访问](http://books.englishburning.com)
55

66
欢迎大家贡献自己的藏书,可提交 Pull Request.
77

88
同时欢迎大家一起组队学习,博主坚信没有学不会的知识,没有掌握不了的知识点,一个人学习坚持不下去?那就一起组队来攻克吧!
9-
![Alt text](./wechat.png)
9+
<img src="https://github.com/tolerious/Programming_learning_resource/blob/master/wechat.png?raw=true" style="height:500px">

0 commit comments

Comments
 (0)