Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
im-common
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈永峰
im-common
Commits
394f71f2
Commit
394f71f2
authored
Nov 03, 2021
by
yanglbme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: update workflows
parent
414f632e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
14 deletions
+4
-14
docs.yml
.github/workflows/docs.yml
+1
-13
sync.yml
.github/workflows/sync.yml
+1
-1
config.js
docs/.vuepress/config.js
+2
-0
getting-started.md
docs/guide/getting-started.md
+0
-0
No files found.
.github/workflows/docs.yml
View file @
394f71f2
name
:
docs
on
:
# 每当 push 到 main 分支时触发部署
push
:
branches
:
[
main
]
# 手动触发部署
workflow_dispatch
:
jobs
:
...
...
@@ -14,16 +12,13 @@ jobs:
steps
:
-
uses
:
actions/checkout@v2
with
:
# “最近更新时间” 等 git 日志相关信息,需要拉取全部提交记录
fetch-depth
:
0
-
name
:
Setup Node.js
uses
:
actions/setup-node@v1
with
:
# 选择要使用的 node 版本
node-version
:
'
14'
node-version
:
"
14"
# 缓存 node_modules
-
name
:
Cache dependencies
uses
:
actions/cache@v2
id
:
yarn-cache
...
...
@@ -34,24 +29,17 @@ jobs:
restore-keys
:
|
${{ runner.os }}-yarn-
# 如果缓存没有命中,安装依赖
-
name
:
Install dependencies
if
:
steps.yarn-cache.outputs.cache-hit != 'true'
run
:
yarn --frozen-lockfile
# 运行构建脚本
-
name
:
Build VuePress site
run
:
yarn docs:build
# 查看 workflow 的文档来获取更多信息
# @see https://github.com/crazy-max/ghaction-github-pages
-
name
:
Deploy to GitHub Pages
uses
:
crazy-max/ghaction-github-pages@v2
with
:
# 部署到 gh-pages 分支
target_branch
:
gh-pages
# 部署目录为 VuePress 的默认输出目录
build_dir
:
docs/.vuepress/dist
env
:
# @see https://docs.github.com/cn/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
.github/workflows/sync.yml
View file @
394f71f2
name
:
S
ync
name
:
s
ync
on
:
push
:
...
...
docs/.vuepress/config.js
View file @
394f71f2
...
...
@@ -6,5 +6,6 @@ module.exports = {
themeConfig
:
{
repo
:
'doocs/qcloud-im-server-sdk-java'
,
logo
:
'https://avatars.githubusercontent.com/u/43716716?s=200&v=4'
,
open
:
true
,
},
}
\ No newline at end of file
docs/guide/getting-started.md
0 → 100644
View file @
394f71f2
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment